docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Class SpriteLibraryAsset

    A custom Asset that stores Sprites grouping.

    상속
    object
    Object
    ScriptableObject
    SpriteLibraryAsset
    상속된 멤버
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetEntityId()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    네임스페이스: UnityEngine.U2D.Animation
    어셈블리: Unity.2D.Animation.Runtime.dll
    구문
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.2d.animation@latest/index.html?subfolder=/manual/AssetUpgrader.html%23upgrading-sprite-libraries")]
    [MovedFrom("UnityEngine.Experimental.U2D.Animation")]
    [Icon("Packages/com.unity.2d.animation/Editor/Assets/ComponentIcons/Animation.SpriteLibrary.png")]
    public class SpriteLibraryAsset : ScriptableObject
    참고

    Sprites are grouped under a given category as categories. Each category and label needs to have a name specified so that it can be queried.

    메서드

    AddCategoryLabel(Sprite, string, string)

    Add or replace and existing Sprite into the given Category and Label.

    선언
    public void AddCategoryLabel(Sprite sprite, string category, string label)
    파라미터
    타입 이름 설명
    Sprite sprite

    Sprite to add.

    string category

    Category to add the Sprite to.

    string label

    Label of the Category to add the Sprite to. If this parameter is null or an empty string, it will attempt to add a empty category.

    GetCategoryLabelNames(string)

    Returns the labels' name for the given name.

    선언
    public IEnumerable<string> GetCategoryLabelNames(string category)
    파라미터
    타입 이름 설명
    string category

    Category name.

    반환
    타입 설명
    IEnumerable<string>

    A Enumerable string representing labels' name.

    GetCategoryNames()

    Return all the Category names of the Sprite Library Asset that is associated.

    선언
    public IEnumerable<string> GetCategoryNames()
    반환
    타입 설명
    IEnumerable<string>

    A Enumerable string value representing the name.

    GetCategorylabelNames(string)

    (Obsolete) Returns the labels' name for the given name.

    선언
    [Obsolete("GetCategorylabelNames has been deprecated. Please use GetCategoryLabelNames (UnityUpgradable) -> GetCategoryLabelNames(*)")]
    public IEnumerable<string> GetCategorylabelNames(string category)
    파라미터
    타입 이름 설명
    string category

    Category name.

    반환
    타입 설명
    IEnumerable<string>

    A Enumerable string representing labels' name.

    GetSprite(string, string)

    Returns the Sprite registered in the Asset given the Category and Label value.

    선언
    public Sprite GetSprite(string category, string label)
    파라미터
    타입 이름 설명
    string category

    Category string value.

    string label

    Label string value.

    반환
    타입 설명
    Sprite

    An instance of a Sprite, or null if there is no such Category, or Label.

    RemoveCategoryLabel(string, string, bool)

    Remove a Label from a given Category.

    선언
    public void RemoveCategoryLabel(string category, string label, bool deleteCategory)
    파라미터
    타입 이름 설명
    string category

    Category to remove from.

    string label

    Label to remove.

    bool deleteCategory

    Indicate to remove the Category if it is empty.

    문서 개요
    맨 위로
    Copyright © 2026 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)