Initialize a tween.
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public Tween<T> Setup(
T start,
T end,
float duration,
Func<float, float> scaleFunc,
Action<ITween<T>> progress,
Action<ITween<T>> completion = null
)
Public 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)
public:
virtual Tween<T>^ Setup(
T start,
T end,
float duration,
Func<float, float>^ scaleFunc,
Action<ITween<T>^>^ progress,
Action<ITween<T>^>^ completion = nullptr
) sealed
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>
override 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: SystemSingle
The duration of the tween. - scaleFunc
- Type: SystemFuncSingle, Single
A function used to scale progress over time. - progress
- Type: SystemActionITweenT
Progress callback - completion (Optional)
- Type: SystemActionITweenT
Called when the tween completes
Return Value
Type:
TweenT[Missing <returns> documentation for "M:DigitalRuby.WeatherMaker.Tween`1.Setup(`0,`0,System.Single,System.Func{System.Single,System.Single},System.Action{DigitalRuby.WeatherMaker.ITween{`0}},System.Action{DigitalRuby.WeatherMaker.ITween{`0}})"]
Implements
ITweenTSetup(T, T, Single, FuncSingle, Single, ActionITweenT, ActionITweenT)See Also