C# Class SpringPosition, TheUnseen

Inheritance: IgnoreTimeScale
Show file Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
current SpringPosition,
ignoreTimeScale bool
onFinished OnFinished
strength float
target Vector3
updateScrollView bool
worldSpace bool

Public Methods

Method Description
Begin ( GameObject go, Vector3 pos, float strength ) : SpringPosition,

Start the tweening process.

Private Methods

Method Description
NotifyListeners ( ) : void

Notify all finished event listeners.

Start ( ) : void

Cache the transform.

Update ( ) : void

Advance toward the target position.

Method Details

Begin() static public method

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

Property Details

current static public property

static public SpringPosition, current
return SpringPosition,

ignoreTimeScale public property

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

onFinished public property

Delegate to trigger when the spring finishes.
public OnFinished onFinished
return OnFinished

strength public property

Strength of the spring. The higher the value, the faster the movement.
public float strength
return float

target public property

Target position to tween to.
public Vector3 target
return Vector3

updateScrollView public property

Whether the parent scroll view will be updated as the object moves.
public bool updateScrollView
return bool

worldSpace public property

Is the calculation done in world space or local space?
public bool worldSpace
return bool