Table of Contents

Class ImageCollection

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll
public class ImageCollection : Image, IAssetCollection<Sprite>
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
UIBehaviour
Graphic
MaskableGraphic
Image
ImageCollection
Implements
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

index int
isInstantly bool
selectionDuration float

SelectAsset(float)

public void SelectAsset(float index)

Parameters

index float

Events

OnAssetSelected

public event Action<Sprite> OnAssetSelected

Event Type

Action<Sprite>