docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AssetReferenceAtlasedSprite

    AssetReference that only allows atlassed Sprite objects. This will prevent legacy sprites from being used in this reference. If legacy sprite usage is needed, AssetReferenceSprite can be used instead.

    Inheritance
    object
    AssetReference
    AssetReferenceT<Sprite>
    AssetReferenceAtlasedSprite
    Implements
    IKeyEvaluator
    Inherited Members
    AssetReferenceT<Sprite>.DerivedClassType
    AssetReferenceT<Sprite>.LoadAssetAsync()
    AssetReference.m_AssetGUID
    AssetReference.OperationHandle
    AssetReference.RuntimeKey
    AssetReference.AssetGUID
    AssetReference.SubObjectName
    AssetReference.SubObjectGUID
    AssetReference.IsValid()
    AssetReference.IsDone
    AssetReference.Asset
    AssetReference.CachedAsset
    AssetReference.ToString()
    AssetReference.LoadAssetAsync<TObject>()
    AssetReference.LoadSceneAsync(LoadSceneMode, bool, int)
    AssetReference.UnLoadScene()
    AssetReference.InstantiateAsync(Vector3, Quaternion, Transform)
    AssetReference.InstantiateAsync(Transform, bool)
    AssetReference.RuntimeKeyIsValid()
    AssetReference.ReleaseAsset()
    AssetReference.ReleaseInstance(GameObject)
    AssetReference.SetEditorAsset(Object)
    AssetReference.SetEditorSubObject(Object)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.AddressableAssets
    Assembly: Unity.Addressables.dll
    Syntax
    [Serializable]
    public class AssetReferenceAtlasedSprite : AssetReferenceT<Sprite>, IKeyEvaluator

    Constructors

    Name Description
    AssetReferenceAtlasedSprite(string)

    Constructs a new reference to a AssetReferenceAtlasedSprite.

    Properties

    Name Description
    editorAsset

    SpriteAtlas Type-specific override of parent editorAsset. Used by the editor to represent the main asset referenced.

    Methods

    Name Description
    ValidateAsset(string)

    Validates that the asset located at a path is allowable for this asset reference. An asset is allowable if it is of the correct type or if one of its sub-asset is.

    ValidateAsset(Object)

    Validates that the referenced asset allowable for this asset reference.

    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)