TweenFactoryTween Method (Object, Vector3, Vector3, Single, FuncSingle, Single, ActionITweenVector3, ActionITweenVector3) |
Start and add a Vector3 tween
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static Vector3Tween Tween(
Object key,
Vector3 start,
Vector3 end,
float duration,
Func<float, float> scaleFunc,
Action<ITween<Vector3>> progress,
Action<ITween<Vector3>> completion = null
)
Public Shared Function Tween (
key As Object,
start As Vector3,
end As Vector3,
duration As Single,
scaleFunc As Func(Of Single, Single),
progress As Action(Of ITween(Of Vector3)),
Optional completion As Action(Of ITween(Of Vector3)) = Nothing
) As Vector3Tween
public:
static Vector3Tween^ Tween(
Object^ key,
Vector3 start,
Vector3 end,
float duration,
Func<float, float>^ scaleFunc,
Action<ITween<Vector3>^>^ progress,
Action<ITween<Vector3>^>^ completion = nullptr
)
static member Tween :
key : Object *
start : Vector3 *
end : Vector3 *
duration : float32 *
scaleFunc : Func<float32, float32> *
progress : Action<ITween<Vector3>> *
?completion : Action<ITween<Vector3>>
(* Defaults:
let _completion = defaultArg completion null
*)
-> Vector3Tween
Parameters
- key
- Type: SystemObject
Key - start
- Type: Vector3
Start value - end
- Type: Vector3
End value - duration
- Type: SystemSingle
Duration in seconds - scaleFunc
- Type: SystemFuncSingle, Single
Scale function - progress
- Type: SystemActionITweenVector3
Progress handler - completion (Optional)
- Type: SystemActionITweenVector3
Completion handler
Return Value
Type:
Vector3TweenVector3Tween
See Also