TweenFactoryTween Method (Object, Single, Single, Single, FuncSingle, Single, ActionITweenSingle, ActionITweenSingle) |
Start and add a float tween
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic 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: SystemObject
Key - start
- Type: SystemSingle
Start value - end
- Type: SystemSingle
End value - duration
- Type: SystemSingle
Duration in seconds - scaleFunc
- Type: SystemFuncSingle, Single
Scale function - progress
- Type: SystemActionITweenSingle
Progress handler - completion (Optional)
- Type: SystemActionITweenSingle
Completion handler
Return Value
Type:
FloatTweenFloatTween
See Also