Table of Contents

Class SelectorItem

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll

Represents a single selectable item: a display name, optional icon, and a selection event.

[Serializable]
public class SelectorItem
Inheritance
object
SelectorItem

Fields

Icon

Optional icon sprite used by icon graphics.

public Sprite Icon

Field Value

Sprite

Name

Display name used in labels.

[SerializeField]
public string Name

Field Value

string

OnSelected

Event invoked when this item becomes selected.

public UnityEvent OnSelected

Field Value

UnityEvent

s_DefaultName

public const string s_DefaultName = "Selector Item"

Field Value

string