NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
UIButtonScale Class Reference

Simple example script of how a button can be scaled visibly when the mouse hovers over it or it gets pressed. More...

Inheritance diagram for UIButtonScale:

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
 

Detailed Description

Simple example script of how a button can be scaled visibly when the mouse hovers over it or it gets pressed.

Member Data Documentation

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

The documentation for this class was generated from the following file: