Class LayerChunk
Parsed representation of an Aseprite Layer chunk.
Implements
Inherited Members
Namespace: UnityEditor .U2D.Aseprite
Assembly: Unity.2D.Aseprite.Editor.dll
Syntax
public class LayerChunk : BaseChunk, IDisposable
Properties
blendMode
Layer blend mode.
Declaration
public BlendModes blendMode { get; }
Property Value
Type | Description |
---|---|
Blend |
childLevel
The child level is used to show the relationship of this layer with the last one read.
Declaration
public ushort childLevel { get; }
Property Value
Type | Description |
---|---|
ushort |
chunkType
The type of the chunk.
Declaration
public override ChunkTypes chunkType { get; }
Property Value
Type | Description |
---|---|
Chunk |
Overrides
flags
Layer option flags.
Declaration
public LayerFlags flags { get; }
Property Value
Type | Description |
---|---|
Layer |
layerType
Type of layer.
Declaration
public LayerTypes layerType { get; }
Property Value
Type | Description |
---|---|
Layer |
name
Layer name.
Declaration
public string name { get; }
Property Value
Type | Description |
---|---|
string |
opacity
Layer opacity (0 = transparent, 255 = opaque).
Declaration
public byte opacity { get; }
Property Value
Type | Description |
---|---|
byte |
tileSetIndex
Tileset index (Only available for Tilemap layers).
Declaration
public uint tileSetIndex { 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. |