Tween Engine

From Virtual World Web Wiki
Jump to: navigation, search

Tween engine

  • This is a JavaScript global object named Tween

Remarks [edit]

Methods

TweenCatalog Catalog()
Creates a new Tween catalog
TweenColor ColorFrom(Color32? color = NULL, float? time = NULL)
TweenColor ColorTo(Color32? color = NULL, float? time = NULL)
TweenCatalog CreateCatalog()
TweenAnimation Delay(float delay, JSFlexibleFunction onComplete)
TweenFade FadeFrom(float alpha, float? time = NULL)
TweenFade FadeTo(float alpha, float? time = NULL)
TweenMove MoveAdd(JSVector3 amount = NULL, float? time = NULL)
TweenMove MoveBy(JSVector3 amount = NULL, float? time = NULL)
TweenMove MoveFrom(JSVector3 position = NULL, float? time = NULL)
TweenMove MoveTo(JSVector3 position = NULL, float? time = NULL)
TweenValue PropertyValue(string property, float? time = NULL)
TweenMove PunchPosition(JSVector3 amount = NULL, float? time = NULL)
TweenTransform PunchRotate(JSVector3 amount = NULL, float? time = NULL)
TweenTransform PunchScale(JSVector3 amount = NULL, float? time = NULL)
TweenTransform RotateAdd(JSVector3 amount = NULL, float? time = NULL)
TweenTransform RotateBy(JSVector3 amount = NULL, float? time = NULL)
TweenTransform RotateFrom(JSVector3 rotation = NULL, float? time = NULL)
TweenTransform RotateTo(JSVector3 rotation = NULL, float? time = NULL)
TweenTransform ScaleAdd(JSVector3 amount = NULL, float? time = NULL)
TweenTransform ScaleBy(JSVector3 amount = NULL, float? time = NULL)
TweenTransform ScaleFrom(JSVector3 scale = NULL, float? time = NULL)
TweenTransform ScaleTo(JSVector3 scale = NULL, float? time = NULL)
TweenSequence Sequence()
Create a new Tween sequence
TweenMove ShakePosition(JSVector3 amount = NULL, float? time = NULL)
TweenTransform ShakeRotate(JSVector3 amount = NULL, float? time = NULL)
TweenTransform ShakeScale(JSVector3 amount = NULL, float? time = NULL)
TweenSize SizeFrom(JSVector2 size = NULL, float? time = NULL)
TweenSize SizeTo(JSVector2 size = NULL, float? time = NULL)
void Stop(GUIContainer target, bool includeChildren = false)
Stops a running tweens on the target object, optional include all children (default is false)
TweenValue ValueTo(float from, float to, float? time = NULL)
TweenAnimation Visible(bool visible)