Click or drag to resize

GameObjectTweenExtensionsTween Method (GameObject, Object, Vector3, Vector3, Single, FuncSingle, Single, ActionITweenVector3, ActionITweenVector3)

Start and add a Vector3 tween

Namespace:  DigitalRuby.WeatherMaker
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public static Vector3Tween Tween(
	this GameObject obj,
	Object key,
	Vector3 start,
	Vector3 end,
	float duration,
	Func<float, float> scaleFunc,
	Action<ITween<Vector3>> progress,
	Action<ITween<Vector3>> completion = null
)

Parameters

obj
Type: GameObject
Game object
key
Type: SystemObject
Key
start
Type: Vector3
Start value
end
Type: Vector3
End value
duration
Type: SystemSingle
Duration in seconds
scaleFunc
Type: SystemFuncSingle, Single
Scale function
progress
Type: SystemActionITweenVector3
Progress handler
completion (Optional)
Type: SystemActionITweenVector3
Completion handler

Return Value

Type: Vector3Tween
Vector3Tween

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