The '''Tween''' component is usually auto generated by [[ProtoFlux]] or by holding an object and hitting primary to align the object. The purpose of this component is to handle transitions in a value to value manner and only exists temporarily. This is not used for animations, only for a transition from one value to another. For animations, see either [[Component:ValueGradientDriver]] or [[Component:Animator]]
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|User|User|
|User|User| The user handling the processing for this component.
|Target|User|
|Target|'''[[Type:IField`1|IField`1]]<T>'''|TypeAdv1=true| The field to drive and Tween.
|OnlyUnderParent|Slot|
|OnlyUnderParent|Slot|
|StartTime|Float|
|From|'''T'''|TypeAdv3=true| The value to start at
|Duration|Float|
|To|'''T'''|TypeAdv4=true| The value to end at.
|Curve|CurvePreset|
|StartTime|Double| The world time this Tween should start. Usually is creation time.
|LocalCallback|Bool|
|Duration|Float| How long from <code>StartTime</code> the Tween should go for.
|OnDone|Delegate|
|Curve|CurvePreset| How <code>Target</code> should transition from <code>From</code> to <code>To</code>. See [[Type:CurvePreset|CurvePreset]]
|LocalCallback|Bool| Whether the Callback should be executed by <code>User</code>
|OnDone|{{RootFieldType|SyncDelegate`1|[[Type:Action|Action]]}}|TypeAdv9=true| The Sync Method to call when this is done tweening.
}}
}}
== Usage ==
== Usage ==
Users should not use this directly, and instead use [[ProtoFlux]] to Invoke this component's behavior.
The Tween component is usually auto generated by ProtoFlux or by holding an object and hitting primary to align the object. The purpose of this component is to handle transitions in a value to value manner and only exists temporarily. This is not used for animations, only for a transition from one value to another. For animations, see either Component:ValueGradientDriver or Component:Animator