C# Class UnityCommonLibrary.UI.Selector

Inheritance: UnityEngine.UI.Selectable, IPointerClickHandler
Show file Open project: thebeardphantom/UnityCommonLibrary

Public Properties

Property Type Description
label UnityEngine.UI.Text
options List
selected int
wrapAround bool

Public Methods

Method Description
FindSelectableOnLeft ( ) : Selectable
FindSelectableOnRight ( ) : Selectable
OnPointerClick ( PointerEventData eventData ) : void

Protected Methods

Method Description
OnValidate ( ) : void
Reset ( ) : void
Start ( ) : void

Private Methods

Method Description
CheckSelected ( ) : void
SetLabel ( ) : void
Update ( ) : void

Method Details

FindSelectableOnLeft() public method

public FindSelectableOnLeft ( ) : Selectable
return UnityEngine.UI.Selectable

FindSelectableOnRight() public method

public FindSelectableOnRight ( ) : Selectable
return UnityEngine.UI.Selectable

OnPointerClick() public method

public OnPointerClick ( PointerEventData eventData ) : void
eventData UnityEngine.EventSystems.PointerEventData
return void

OnValidate() protected method

protected OnValidate ( ) : void
return void

Reset() protected method

protected Reset ( ) : void
return void

Start() protected method

protected Start ( ) : void
return void

Property Details

label public property

public Text,UnityEngine.UI label
return UnityEngine.UI.Text

options public property

public List options
return List

selected public property

public int selected
return int

wrapAround public property

public bool wrapAround
return bool