docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ISpriteBoneDataProvider

    Data Provider interface that deals with Sprite Bone data.

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

    Methods

    GetBones(GUID)

    Returns the list of SpriteBone for the corresponding Sprite ID.

    Declaration
    List<SpriteBone> GetBones(GUID guid)
    Parameters
    Type Name Description
    GUID guid

    Sprite ID.

    Returns
    Type Description
    List<SpriteBone>

    The list of SpriteBone associated with the Sprite

    SetBones(GUID, List<SpriteBone>)

    Sets a new set of SpriteBone for the corresponding Sprite ID.

    Declaration
    void SetBones(GUID guid, List<SpriteBone> bones)
    Parameters
    Type Name Description
    GUID guid

    Sprite ID.

    List<SpriteBone> bones

    List of SpriteBone to associate with the Sprite.

    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)