Click or drag to resize

TweenFollowMethod Method

Follows method of object and applies the returned value on target_method of target, beginning from initial_val for duration seconds, delay later. Methods are called with consecutive values.

Use TweenTransitionType for trans_type and TweenEaseType for ease_type parameters. These values control the timing and direction of the interpolation. See the class description for more information.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public bool FollowMethod(
	Object object,
	string method,
	Object initialVal,
	Object target,
	string targetMethod,
	float duration,
	TweenTransitionType transType = TweenTransitionType.Linear,
	TweenEaseType easeType = TweenEaseType.InOut,
	float delay = 0f
)

Parameters

object
Type: GodotObject

[Missing <param name="object"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

method
Type: SystemString

[Missing <param name="method"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

initialVal
Type: SystemObject

[Missing <param name="initialVal"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

target
Type: GodotObject

[Missing <param name="target"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

targetMethod
Type: SystemString

[Missing <param name="targetMethod"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

duration
Type: SystemSingle

[Missing <param name="duration"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

transType (Optional)
Type: GodotTweenTransitionType

[Missing <param name="transType"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

easeType (Optional)
Type: GodotTweenEaseType

[Missing <param name="easeType"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

delay (Optional)
Type: SystemSingle

[Missing <param name="delay"/> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Tween.FollowMethod(Godot.Object,System.String,System.Object,Godot.Object,System.String,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

See Also