| GameObjectTweenExtensionsTween Method (GameObject, Object, Quaternion, Quaternion, Single, FuncSingle, Single, ActionITweenQuaternion, ActionITweenQuaternion) | 
 
            Start and add a Quaternion tween
            
 
    Namespace: 
   DigitalRuby.WeatherMaker
    Assembly:
   Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
 Syntax
Syntaxpublic static QuaternionTween Tween(
	this GameObject obj,
	Object key,
	Quaternion start,
	Quaternion end,
	float duration,
	Func<float, float> scaleFunc,
	Action<ITween<Quaternion>> progress,
	Action<ITween<Quaternion>> completion = null
)
<ExtensionAttribute>
Public Shared Function Tween ( 
	obj As GameObject,
	key As Object,
	start As Quaternion,
	end As Quaternion,
	duration As Single,
	scaleFunc As Func(Of Single, Single),
	progress As Action(Of ITween(Of Quaternion)),
	Optional completion As Action(Of ITween(Of Quaternion)) = Nothing
) As QuaternionTween
public:
[ExtensionAttribute]
static QuaternionTween^ Tween(
	GameObject^ obj, 
	Object^ key, 
	Quaternion start, 
	Quaternion end, 
	float duration, 
	Func<float, float>^ scaleFunc, 
	Action<ITween<Quaternion>^>^ progress, 
	Action<ITween<Quaternion>^>^ completion = nullptr
)
[<ExtensionAttribute>]
static member Tween : 
        obj : GameObject * 
        key : Object * 
        start : Quaternion * 
        end : Quaternion * 
        duration : float32 * 
        scaleFunc : Func<float32, float32> * 
        progress : Action<ITween<Quaternion>> * 
        ?completion : Action<ITween<Quaternion>> 
(* Defaults:
        let _completion = defaultArg completion null
*)
-> QuaternionTween 
Parameters
- obj
- Type: GameObject
 Game object
- key
- Type: SystemObject
 Key
- start
- Type: Quaternion
 Start value
- end
- Type: Quaternion
 End value
- duration
- Type: SystemSingle
 Duration in seconds
- scaleFunc
- Type: SystemFuncSingle, Single
 Scale function
- progress
- Type: SystemActionITweenQuaternion
 Progress handler
- completion (Optional)
- Type: SystemActionITweenQuaternion
 Completion handler
Return Value
Type: 
QuaternionTweenQuaternionTween
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
See Also