Class AssetReferenceSprite
Sprite only asset reference.
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) | 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. |