Class AssetReferenceSprite
Sprite only asset reference.
Inherited Members
Namespace: UnityEngine.AddressableAssets
Syntax
[Serializable]
public class AssetReferenceSprite : AssetReferenceT<Sprite>, IKeyEvaluator
Constructors
AssetReferenceSprite(String)
Constructs a new reference to a AssetReferenceSprite.
Declaration
public AssetReferenceSprite(string guid)
Parameters
Type | Name | Description |
---|---|---|
String | guid | The object guid. |
Methods
ValidateAsset(String)
Validates that the referenced asset allowable for this asset reference.
Declaration
public override bool ValidateAsset(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to the asset in question. |
Returns
Type | Description |
---|---|
Boolean | Whether the referenced asset is valid. |
Overrides
UnityEngine.AddressableAssets.AssetReferenceT<UnityEngine.Sprite>.ValidateAsset(System.String)