docs.unity3d.com
    Show / Hide Table of Contents

    Class CellChunk

    Parsed representation of an Aseprite Cell chunk.

    Inheritance
    Object
    BaseChunk
    CellChunk
    Inherited Members
    BaseChunk.m_ChunkSize
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.U2D.Aseprite
    Syntax
    public class CellChunk : BaseChunk, IDisposable

    Properties

    cellType

    The type of cell.

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

    chunkType

    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
    UInt16

    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
    UInt16

    linkedToFrame

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

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

    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
    Int16

    posY

    The Cell's Y position on the canvas.

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

    width

    The width of the cell in pixels.

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

    Methods

    Dispose()

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

    InternalRead(BinaryReader)

    Declaration
    protected override void InternalRead(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader
    Overrides
    BaseChunk.InternalRead(BinaryReader)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023