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