docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CellChunk

    Parsed representation of an Aseprite Cell chunk.

    Inheritance
    object
    BaseChunk
    CellChunk
    Implements
    IDisposable
    Inherited Members
    BaseChunk.m_ChunkSize
    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 class CellChunk : BaseChunk, IDisposable

    Properties

    cellType

    The type of cell.

    Declaration
    public CellTypes cellType { get; }
    Property Value
    Type Description
    CellTypes

    chunkType

    The type of the chunk.

    Declaration
    public override ChunkTypes chunkType { get; }
    Property Value
    Type Description
    ChunkTypes
    Overrides
    BaseChunk.chunkType

    dataChunk

    User data associated with the cell.

    Declaration
    public UserDataChunk dataChunk { get; set; }
    Property Value
    Type Description
    UserDataChunk

    height

    The height of the cell in pixels.

    Declaration
    public ushort height { get; }
    Property Value
    Type Description
    ushort

    image

    The image data of the cell.

    Declaration
    public NativeArray<Color32> image { get; }
    Property Value
    Type Description
    NativeArray<Color32>

    layerIndex

    The layer index is a number to identify a layer in the sprite. Layers are numbered in the same order as Layer Chunks appear in the file.

    Declaration
    public ushort layerIndex { get; }
    Property Value
    Type Description
    ushort

    linkedToFrame

    The frame index of the cell (Only available for Linked Cells).

    Declaration
    public int linkedToFrame { get; }
    Property Value
    Type Description
    int

    opacity

    Opacity level of the cell (0 = transparent, 255 = opaque).

    Declaration
    public byte opacity { get; }
    Property Value
    Type Description
    byte

    posX

    The Cell's X position on the canvas.

    Declaration
    public short posX { get; }
    Property Value
    Type Description
    short

    posY

    The Cell's Y position on the canvas.

    Declaration
    public short posY { get; }
    Property Value
    Type Description
    short

    width

    The width of the cell in pixels.

    Declaration
    public ushort width { get; }
    Property Value
    Type Description
    ushort

    Methods

    Dispose()

    Dispose of the image data.

    Declaration
    public override void Dispose()
    Overrides
    BaseChunk.Dispose()

    InternalRead(BinaryReader)

    Read and store the chunk data.

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

    The active binary reader of the file.

    Overrides
    BaseChunk.InternalRead(BinaryReader)

    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)