Class AssetReferenceAtlasedSprite
Assetreference that only allows atlassed sprites.
Implements
Inherited Members
Namespace: UnityEngine.AddressableAssets
Assembly: Unity.Addressables.dll
Syntax
[Serializable]
public class AssetReferenceAtlasedSprite : AssetReferenceT<Sprite>, IKeyEvaluator
Constructors
| Name | Description |
|---|---|
| AssetReferenceAtlasedSprite(string) | Constructs a new reference to a AssetReferenceAtlasedSprite. |
Properties
| Name | Description |
|---|---|
| editorAsset | SpriteAtlas Type-specific 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. |
| ValidateAsset(Object) | Validates that the referenced asset allowable for this asset reference. |