docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BaseChunk

    Base class for all chunks.

    Inheritance
    object
    BaseChunk
    CellChunk
    ColorProfileChunk
    LayerChunk
    PaletteChunk
    TagsChunk
    TilesetChunk
    UserDataChunk
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.U2D.Aseprite
    Assembly: Unity.2D.Aseprite.Editor.dll
    Syntax
    public abstract class BaseChunk : IDisposable

    Constructors

    BaseChunk(uint)

    Constructor.

    Declaration
    protected BaseChunk(uint chunkSize)
    Parameters
    Type Name Description
    uint chunkSize

    The size of the chunk in bytes.

    Fields

    m_ChunkSize

    The size of the chunk in bytes.

    Declaration
    protected readonly uint m_ChunkSize
    Field Value
    Type Description
    uint

    Properties

    chunkType

    The type of the chunk.

    Declaration
    public virtual ChunkTypes chunkType { get; }
    Property Value
    Type Description
    ChunkTypes

    Methods

    Dispose()

    Implement this method to dispose of the chunk data.

    Declaration
    public virtual void Dispose()

    InternalRead(BinaryReader)

    Implement this method to read the chunk data.

    Declaration
    protected abstract void InternalRead(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The active binary reader of the file.

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)