Class ImageCollection
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
public class ImageCollection : Image, IAssetCollection<Sprite>
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourUIBehaviourGraphicMaskableGraphicImageImageCollection
- Implements
-
IAssetCollection<Sprite>
- Extension Methods
Properties
AssetsNumber
public int AssetsNumber { get; }
Property Value
- int
SelectedAssetIndex
public int SelectedAssetIndex { get; set; }
Property Value
- int
Methods
SelectAsset(int, bool, float)
public void SelectAsset(int index, bool isInstantly = false, float selectionDuration = 1)
Parameters
indexintisInstantlyboolselectionDurationfloat
SelectAsset(float)
public void SelectAsset(float index)
Parameters
indexfloat
Events
OnAssetSelected
public event Action<Sprite> OnAssetSelected
Event Type
- Action<Sprite>