docs.unity3d.com
    Show / Hide Table of Contents

    Class PaletteChunk

    Parsed representation of an Aseprite Palette chunk.

    Inheritance
    Object
    BaseChunk
    PaletteChunk
    Inherited Members
    BaseChunk.m_ChunkSize
    BaseChunk.Dispose()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.U2D.Aseprite
    Syntax
    public class PaletteChunk : BaseChunk, IDisposable

    Properties

    chunkType

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

    entries

    Array of palette entries.

    Declaration
    public ReadOnlyCollection<PaletteEntry> entries { get; }
    Property Value
    Type Description
    ReadOnlyCollection<PaletteEntry>

    firstColorIndex

    Index of the first color to change.

    Declaration
    public uint firstColorIndex { get; }
    Property Value
    Type Description
    UInt32

    lastColorIndex

    Index of the last color to change.

    Declaration
    public uint lastColorIndex { get; }
    Property Value
    Type Description
    UInt32

    noOfEntries

    Number of entries in the palette.

    Declaration
    public uint noOfEntries { get; }
    Property Value
    Type Description
    UInt32

    Methods

    InternalRead(BinaryReader)

    Declaration
    protected override void InternalRead(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader
    Overrides
    BaseChunk.InternalRead(BinaryReader)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023