Click or drag to resize

MonoBehaviourExtensionsTweenT Method (MonoBehaviour, T, T, Single, FuncT, T, Single, T, ActionT, FuncSingle)

Namespace:  Gamelogic.Extensions
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static Coroutine Tween<T>(
	this MonoBehaviour monoBehaviour,
	T start,
	T finish,
	float totalTime,
	Func<T, T, float, T> lerp,
	Action<T> action,
	Func<float> deltaTime
)

Parameters

monoBehaviour
Type: MonoBehaviour
start
Type: T
finish
Type: T
totalTime
Type: SystemSingle
lerp
Type: SystemFuncT, T, Single, T
action
Type: SystemActionT
deltaTime
Type: SystemFuncSingle

Type Parameters

T

Return Value

Type: Coroutine

Usage 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