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