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