docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method AddOverride

    AddOverride(SpriteLibraryAsset, string, string)

    Add or replace an override when querying for the given Category and Label from a SpriteLibraryAsset.

    Declaration
    public void AddOverride(SpriteLibraryAsset spriteLib, string category, string label)
    Parameters
    Type Name Description
    SpriteLibraryAsset spriteLib

    Sprite Library Asset to query.

    string category

    Category name from the Sprite Library Asset to add override.

    string label

    Label name to add override.

    AddOverride(SpriteLibraryAsset, string)

    Add or replace an override when querying for the given Category. All the categories in the Category will be added.

    Declaration
    public void AddOverride(SpriteLibraryAsset spriteLib, string category)
    Parameters
    Type Name Description
    SpriteLibraryAsset spriteLib

    Sprite Library Asset to query.

    string category

    Category name from the Sprite Library Asset to add override.

    AddOverride(Sprite, string, string)

    Add or replace an override when querying for the given Category and Label.

    Declaration
    public void AddOverride(Sprite sprite, string category, string label)
    Parameters
    Type Name Description
    Sprite sprite

    Sprite to override to.

    string category

    Category name to override.

    string label

    Label name to override.

    In This Article
    Back to top
    Copyright © 2024 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)