docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TilesetChunk

    Parsed representation of an Aseprite Tileset chunk. Not supported yet.

    Inheritance
    object
    BaseChunk
    TilesetChunk
    Implements
    IDisposable
    Inherited Members
    BaseChunk.m_ChunkSize
    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 TilesetChunk : BaseChunk, IDisposable

    Properties

    chunkType

    The type of the chunk.

    Declaration
    public override ChunkTypes chunkType { get; }
    Property Value
    Type Description
    ChunkTypes
    Overrides
    BaseChunk.chunkType

    height

    Tile height in pixels.

    Declaration
    public ushort height { get; }
    Property Value
    Type Description
    ushort

    noOfTiles

    The number of tiles in the tileset.

    Declaration
    public uint noOfTiles { get; }
    Property Value
    Type Description
    uint

    tileImages

    The image data of the tiles.

    Declaration
    public NativeArray<Color32>[] tileImages { get; }
    Property Value
    Type Description
    NativeArray<Color32>[]

    tileSetFlags

    Flags to define where data for a tileset is stored.

    Declaration
    public TileSetFlags tileSetFlags { get; }
    Property Value
    Type Description
    TileSetFlags

    tileSetId

    The ID of the tileset.

    Declaration
    public uint tileSetId { get; }
    Property Value
    Type Description
    uint

    tileSetName

    The name of the tileset.

    Declaration
    public string tileSetName { get; }
    Property Value
    Type Description
    string

    width

    Tile width in pixels.

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

    Methods

    Dispose()

    Dispose of the image data.

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

    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)