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