Class AssetReferenceAtlasedSprite
Assetreference that only allows atlassed sprites.
Inherited Members
Namespace: UnityEngine.AddressableAssets
Syntax
[Serializable]
public class AssetReferenceAtlasedSprite : AssetReferenceT<Sprite>, IKeyEvaluator
Constructors
AssetReferenceAtlasedSprite(String)
Declaration
public AssetReferenceAtlasedSprite(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<UnityEngine.Sprite>.ValidateAsset(System.String)