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
)
<ExtensionAttribute>
Public Shared Function Tween (
obj As GameObject,
key As Object,
start As Single,
end As Single,
duration As Single,
scaleFunc As Func(Of Single, Single),
progress As Action(Of ITween(Of Single)),
Optional completion As Action(Of ITween(Of Single)) = Nothing
) As FloatTween
public:
[ExtensionAttribute]
static FloatTween^ Tween(
GameObject^ obj,
Object^ key,
float start,
float end,
float duration,
Func<float, float>^ scaleFunc,
Action<ITween<float>^>^ progress,
Action<ITween<float>^>^ completion = nullptr
)
[<ExtensionAttribute>]
static member Tween :
obj : GameObject *
key : Object *
start : float32 *
end : float32 *
duration : float32 *
scaleFunc : Func<float32, float32> *
progress : Action<ITween<float32>> *
?completion : Action<ITween<float32>>
(* Defaults:
let _completion = defaultArg completion null
*)
-> FloatTween
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:
FloatTweenFloatTween
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