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.
Implements
Inherited Members
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. |