Click or drag to resize

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
)

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: FloatTween
FloatTween
See Also