Class AssetReferenceSprite
Sprite only asset reference.
Inherited Members
Namespace: UnityEngine.AddressableAssets
Syntax
[Serializable]
public class AssetReferenceSprite : AssetReferenceT<Sprite>, IKeyEvaluatorConstructors
AssetReferenceSprite(String)
Declaration
public AssetReferenceSprite(string guid)Parameters
| Type | Name | Description | 
|---|---|---|
| String | 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<Sprite>.ValidateAsset(System.String)