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

Spring-like motion – the farther away the object is from the target, the stronger the pull. More...

Inheritance diagram for SpringPosition:

Public Member Functions

delegate void OnFinished ()
 

Static Public Member Functions

static SpringPosition Begin (GameObject go, Vector3 pos, float strength)
 Start the tweening process. More...
 

Public Attributes

Vector3 target = Vector3.zero
 Target position to tween to. More...
 
float strength = 10f
 Strength of the spring. The higher the value, the faster the movement. More...
 
bool worldSpace = false
 Is the calculation done in world space or local space? More...
 
bool ignoreTimeScale = false
 Whether the time scale will be ignored. Generally UI components should set it to 'true'. More...
 
bool updateScrollView = false
 Whether the parent scroll view will be updated as the object moves. More...
 
OnFinished onFinished
 Delegate to trigger when the spring finishes. More...
 
string callWhenFinished
 

Static Public Attributes

static SpringPosition current
 

Detailed Description

Spring-like motion – the farther away the object is from the target, the stronger the pull.

Member Function Documentation

static SpringPosition SpringPosition.Begin ( GameObject  go,
Vector3  pos,
float  strength 
)
static

Start the tweening process.

delegate void SpringPosition.OnFinished ( )

Member Data Documentation

string SpringPosition.callWhenFinished
SpringPosition SpringPosition.current
static
bool SpringPosition.ignoreTimeScale = false

Whether the time scale will be ignored. Generally UI components should set it to 'true'.

OnFinished SpringPosition.onFinished

Delegate to trigger when the spring finishes.

float SpringPosition.strength = 10f

Strength of the spring. The higher the value, the faster the movement.

Vector3 SpringPosition.target = Vector3.zero

Target position to tween to.

bool SpringPosition.updateScrollView = false

Whether the parent scroll view will be updated as the object moves.

bool SpringPosition.worldSpace = false

Is the calculation done in world space or local space?


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