NGUI: Next-Gen UI kit
3.7.2
|
Deprecated component. Use UIKeyNavigation instead. More...
Public Member Functions | |
void | Upgrade () |
Public Attributes | |
UIButtonKeys | selectOnClick |
UIButtonKeys | selectOnUp |
UIButtonKeys | selectOnDown |
UIButtonKeys | selectOnLeft |
UIButtonKeys | selectOnRight |
![]() | |
Constraint | constraint = Constraint.None |
If a selection target is not set, the target can be determined automatically, restricted by this constraint. 'None' means free movement on both horizontal and vertical axis. 'Explicit' means the automatic logic will not execute, and only the explicitly set values will be used. More... | |
GameObject | onUp |
Which object will be selected when the Up button is pressed. More... | |
GameObject | onDown |
Which object will be selected when the Down button is pressed. More... | |
GameObject | onLeft |
Which object will be selected when the Left button is pressed. More... | |
GameObject | onRight |
Which object will be selected when the Right button is pressed. More... | |
GameObject | onClick |
Which object will get selected on click. More... | |
bool | startsSelected = false |
Whether the object this script is attached to will get selected as soon as this script is enabled. More... | |
Protected Member Functions | |
override void | OnEnable () |
![]() | |
virtual void | OnDisable () |
GameObject | GetLeft () |
GameObject | GetUp () |
GameObject | GetDown () |
GameObject | Get (Vector3 myDir, bool horizontal) |
virtual void | OnKey (KeyCode key) |
virtual void | OnClick () |
Additional Inherited Members | |
![]() | |
enum | Constraint { Constraint.None, Constraint.Vertical, Constraint.Horizontal, Constraint.Explicit } |
![]() | |
static BetterList < UIKeyNavigation > | list = new BetterList<UIKeyNavigation>() |
List of all the active UINavigation components. More... | |
![]() | |
static Vector3 | GetCenter (GameObject go) |
Deprecated component. Use UIKeyNavigation instead.
|
protectedvirtual |
Reimplemented from UIKeyNavigation.
void UIButtonKeys.Upgrade | ( | ) |
UIButtonKeys UIButtonKeys.selectOnClick |
UIButtonKeys UIButtonKeys.selectOnDown |
UIButtonKeys UIButtonKeys.selectOnLeft |
UIButtonKeys UIButtonKeys.selectOnRight |
UIButtonKeys UIButtonKeys.selectOnUp |