Click or drag to resize

TweenTargetingMethod Method

Animates method of object from the value returned by initial_method to final_val for duration seconds, delay seconds later. Methods are animated by calling them 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 TargetingMethod(
	Object object,
	string method,
	Object initial,
	string initialMethod,
	Object finalVal,
	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.TargetingMethod(Godot.Object,System.String,Godot.Object,System.String,System.Object,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

method
Type: SystemString

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

initial
Type: GodotObject

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

initialMethod
Type: SystemString

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

finalVal
Type: SystemObject

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

duration
Type: SystemSingle

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

transType (Optional)
Type: GodotTweenTransitionType

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

easeType (Optional)
Type: GodotTweenEaseType

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

delay (Optional)
Type: SystemSingle

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

Return Value

Type: Boolean

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

See Also