| MonoBehaviourExtensionsTweenT Method (MonoBehaviour, T, T, Single, FuncT, T, Single, T, ActionT) |
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static Coroutine Tween<T>(
this MonoBehaviour monoBehaviour,
T start,
T finish,
float totalTime,
Func<T, T, float, T> lerp,
Action<T> action
)
Parameters
- monoBehaviour
- Type: MonoBehaviour
- start
- Type: T
- finish
- Type: T
- totalTime
- Type: SystemSingle
- lerp
- Type: SystemFuncT, T, Single, T
- action
- Type: SystemActionT
Type Parameters
- T
Return Value
Type:
CoroutineUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MonoBehaviour. 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