docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISpriteNameFileIdDataProvider

    Data provider that provides data for ID to be used given a SpriteRect's name.

    Namespace: UnityEditor.U2D.Sprites
    Assembly: Unity.2D.Sprite.Editor.dll
    Syntax
    public interface ISpriteNameFileIdDataProvider
    Remarks

    The name and ID pair is used to allow mapping back a previous created SpriteRect.

    Methods

    GetNameFileIdPairs()

    Returns an IEnumerable of SpriteNameFileIdPair representing the name and file id pairs the provider has.

    Declaration
    IEnumerable<SpriteNameFileIdPair> GetNameFileIdPairs()
    Returns
    Type Description
    IEnumerable<SpriteNameFileIdPair>

    Name and file id pairs.

    SetNameFileIdPairs(IEnumerable<SpriteNameFileIdPair>)

    Sets the data provider's current NameFileIdPair.

    Declaration
    void SetNameFileIdPairs(IEnumerable<SpriteNameFileIdPair> nameFileIdPairs)
    Parameters
    Type Name Description
    IEnumerable<SpriteNameFileIdPair> nameFileIdPairs

    Updated IEnumerable of SpriteNameFileIdPair.

    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)