Click or drag to resize

GameObjectTweenExtensionsTween Method (GameObject, 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
Syntax
public static FloatTween Tween(
	this GameObject obj,
	Object key,
	float start,
	float end,
	float duration,
	Func<float, float> scaleFunc,
	Action<ITween<float>> progress,
	Action<ITween<float>> completion = null
)

Parameters

obj
Type: GameObject
Game object
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: FloatTween
FloatTween

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GameObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also