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