docs.unity.cn
    Show / Hide Table of Contents

    Interface ISpriteBoneDataProvider

    Data Provider interface that deals with Sprite Bone data.

    Namespace: UnityEditor.U2D.Sprites
    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
    UnityEditor.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
    UnityEditor.GUID guid

    Sprite ID.

    List<SpriteBone> bones

    List of SpriteBone to associate with the Sprite.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on 09 May 2022
    Terms of use