Class PaletteChunk
Parsed representation of an Aseprite Palette chunk.
Implements
Inherited Members
Namespace: UnityEditor .U2D.Aseprite
Assembly: Unity.2D.Aseprite.Editor.dll
Syntax
public class PaletteChunk : BaseChunk, IDisposable
Properties
chunkType
The type of the chunk.
Declaration
public override ChunkTypes chunkType { get; }
Property Value
Type | Description |
---|---|
Chunk |
Overrides
entries
Array of palette entries.
Declaration
public ReadOnlyCollection<PaletteEntry> entries { get; }
Property Value
Type | Description |
---|---|
Read |
firstColorIndex
Index of the first color to change.
Declaration
public uint firstColorIndex { get; }
Property Value
Type | Description |
---|---|
uint |
lastColorIndex
Index of the last color to change.
Declaration
public uint lastColorIndex { get; }
Property Value
Type | Description |
---|---|
uint |
noOfEntries
Number of entries in the palette.
Declaration
public uint noOfEntries { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
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. |