NGUI: Next-Gen UI kit
3.7.2
|
Simple example script of how a button can be scaled visibly when the mouse hovers over it or it gets pressed. More...
Public Attributes | |
Transform | tweenTarget |
Vector3 | hover = new Vector3(1.1f, 1.1f, 1.1f) |
Vector3 | pressed = new Vector3(1.05f, 1.05f, 1.05f) |
float | duration = 0.2f |
Simple example script of how a button can be scaled visibly when the mouse hovers over it or it gets pressed.
float UIButtonScale.duration = 0.2f |
Vector3 UIButtonScale.hover = new Vector3(1.1f, 1.1f, 1.1f) |
Vector3 UIButtonScale.pressed = new Vector3(1.05f, 1.05f, 1.05f) |
Transform UIButtonScale.tweenTarget |