Will scale uiItem up and down, on press events. More...
Inherits tk2dUIBaseItemControl.
Public Member Functions | |
| void | InternalSetUseOnReleaseInsteadOfOnUp (bool state) |
| Internal do not use. | |
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 | |
| Vector3 | onDownScale = new Vector3(.9f, .9f, .9f) |
| What it should scsale to onDown event. | |
| float | tweenDuration = .1f |
| How long the tween (scaling) should last in seconds. If set to 0 no tween is used, happens instantly. | |
| bool | canButtonBeHeldDown = true |
| If button can be held down (will not be scale back to original until up/release) Can not be toggled at run-time. | |
| tk2dUIItem | uiItem |
| Button(uiItem) for this control. | |
Will scale uiItem up and down, on press events.
| 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.
| void tk2dUITweenItem.InternalSetUseOnReleaseInsteadOfOnUp | ( | bool | state | ) |
Internal do not use.
| bool tk2dUITweenItem.canButtonBeHeldDown = true |
If button can be held down (will not be scale back to original until up/release) Can not be toggled at run-time.
| Vector3 tk2dUITweenItem.onDownScale = new Vector3(.9f, .9f, .9f) |
What it should scsale to onDown event.
| float tk2dUITweenItem.tweenDuration = .1f |
How long the tween (scaling) should last in seconds. If set to 0 no tween is used, happens instantly.
tk2dUIItem tk2dUIBaseItemControl.uiItem [inherited] |
Button(uiItem) for this control.