Class AssetReferenceSprite
AssetReference that only allows Sprite objects.
Implements
Inherited Members
Namespace: UnityEngine.AddressableAssets
Assembly: Unity.Addressables.dll
Syntax
[Serializable]
public class AssetReferenceSprite : AssetReferenceT<Sprite>, IKeyEvaluator
Constructors
Name | Description |
---|---|
AssetReferenceSprite(string) | Constructs a new reference to a AssetReferenceSprite. |
Properties
Name | Description |
---|---|
editorAsset | Typeless override of parent editorAsset. Used by the editor to represent the main asset referenced. |
Methods
Name | Description |
---|---|
ValidateAsset(string) | Checks whether the asset located at a path is valid for this asset reference. An asset is valid if it is of the correct type or if one of its sub-assets are. |