ToggleButton which can have multi-different states which it will toggle between. More...
Inherits tk2dUIBaseItemControl.
Static Public Member Functions | |
| static void | ChangeGameObjectActiveState (GameObject go, bool isActive) |
| Used for SetActive so easily works between Unity 3.x and Unity 4.x. | |
| static void | ChangeGameObjectActiveStateWithNullCheck (GameObject go, bool isActive) |
| Changes active state, but first checks to make sure it isn't null. | |
Public Attributes | |
| GameObject[] | states |
| All states which toggle between. They will be actived/deactived as cycle through list. These do not need to be set to anything, you can simply set the array to required length. | |
| bool | activateOnPress = false |
| If false toggles on click, if true toggles on down. | |
| tk2dUIItem | uiItem |
| Button(uiItem) for this control. | |
Properties | |
| int | Index [get, set] |
| Currently selected index of active state. | |
Events | |
| System.Action < tk2dUIMultiStateToggleButton > | OnStateToggle |
| Event on change of state. | |
ToggleButton which can have multi-different states which it will toggle between.
| static void tk2dUIBaseItemControl.ChangeGameObjectActiveState | ( | GameObject | go, |
| bool | isActive | ||
| ) | [static, inherited] |
Used for SetActive so easily works between Unity 3.x and Unity 4.x.
| static void tk2dUIBaseItemControl.ChangeGameObjectActiveStateWithNullCheck | ( | GameObject | go, |
| bool | isActive | ||
| ) | [static, inherited] |
Changes active state, but first checks to make sure it isn't null.
| bool tk2dUIMultiStateToggleButton.activateOnPress = false |
If false toggles on click, if true toggles on down.
| GameObject [] tk2dUIMultiStateToggleButton.states |
All states which toggle between. They will be actived/deactived as cycle through list. These do not need to be set to anything, you can simply set the array to required length.
tk2dUIItem tk2dUIBaseItemControl.uiItem [inherited] |
Button(uiItem) for this control.
int tk2dUIMultiStateToggleButton.Index [get, set] |
Currently selected index of active state.
Event on change of state.