Click or drag to resize

GameObjectTweenExtensionsTween Method (GameObject, Object, Vector4, Vector4, Single, FuncSingle, Single, ActionITweenVector4, ActionITweenVector4)

Start and add a Vector4 tween

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

Parameters

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

Return Value

Type: Vector4Tween
Vector4Tween

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