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