Initialize a tween.
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
SyntaxTween<T> Setup(
T start,
T end,
float duration,
Func<float, float> scaleFunc,
Action<ITween<T>> progress,
Action<ITween<T>> completion = null
)
Function Setup (
start As T,
end As T,
duration As Single,
scaleFunc As Func(Of Single, Single),
progress As Action(Of ITween(Of T)),
Optional completion As Action(Of ITween(Of T)) = Nothing
) As Tween(Of T)
Tween<T>^ Setup(
T start,
T end,
float duration,
Func<float, float>^ scaleFunc,
Action<ITween<T>^>^ progress,
Action<ITween<T>^>^ completion = nullptr
)
abstract Setup :
start : 'T *
end : 'T *
duration : float32 *
scaleFunc : Func<float32, float32> *
progress : Action<ITween<'T>> *
?completion : Action<ITween<'T>>
(* Defaults:
let _completion = defaultArg completion null
*)
-> Tween<'T>
Parameters
- start
- Type: T
The start value. - end
- Type: T
The end value. - duration
- Type: System.Single
The duration of the tween. - scaleFunc
- Type: System.Func<Single, Single>
A function used to scale progress over time. - progress
- Type: System.Action<ITween<T>>
Progress callback - completion (Optional)
- Type: System.Action<ITween<T>>
Called when the tween completes
Return Value
Type:
Tween<T>[Missing <returns> documentation for "M:DigitalRuby.WeatherMaker.ITween`1.Setup(`0,`0,System.Single,System.Func{System.Single,System.Single},System.Action{DigitalRuby.WeatherMaker.ITween{`0}},System.Action{DigitalRuby.WeatherMaker.ITween{`0}})"]
See Also