docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LayerChunk

    Parsed representation of an Aseprite Layer chunk.

    Inheritance
    object
    BaseChunk
    LayerChunk
    Implements
    IDisposable
    Inherited Members
    BaseChunk.m_ChunkSize
    BaseChunk.Dispose()
    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 LayerChunk : BaseChunk, IDisposable

    Properties

    blendMode

    Layer blend mode.

    Declaration
    public BlendModes blendMode { get; }
    Property Value
    Type Description
    BlendModes

    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
    ChunkTypes
    Overrides
    BaseChunk.chunkType

    flags

    Layer option flags.

    Declaration
    public LayerFlags flags { get; }
    Property Value
    Type Description
    LayerFlags

    layerType

    Type of layer.

    Declaration
    public LayerTypes layerType { get; }
    Property Value
    Type Description
    LayerTypes

    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
    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)