NGUI: Next-Gen UI kit
3.7.2
|
Spring-like motion – the farther away the object is from the target, the stronger the pull. More...
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 |
Spring-like motion – the farther away the object is from the target, the stronger the pull.
|
static |
Start the tweening process.
delegate void SpringPosition.OnFinished | ( | ) |
string SpringPosition.callWhenFinished |
|
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?