Class CellChunk
Parsed representation of an Aseprite Cell chunk.
Implements
Inherited Members
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 |
---|---|
Cell |
chunkType
The type of the chunk.
Declaration
public override ChunkTypes chunkType { get; }
Property Value
Type | Description |
---|---|
Chunk |
Overrides
dataChunk
User data associated with the cell.
Declaration
public UserDataChunk dataChunk { get; set; }
Property Value
Type | Description |
---|---|
User |
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 |
---|---|
Native |
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 and tile data.
Declaration
public override void Dispose()
Overrides
InternalRead(BinaryReader)
Read and store the chunk data.
Declaration
protected override void InternalRead(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
Binary |
reader | The active binary reader of the file. |