Click or drag to resize

TweenTargetingProperty Method

Animates property of object from the current value of the initial_val property of initial to final_val for duration seconds, delay seconds later.

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 TargetingProperty(
	Object object,
	NodePath property,
	Object initial,
	NodePath initialVal,
	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.TargetingProperty(Godot.Object,Godot.NodePath,Godot.Object,Godot.NodePath,System.Object,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

property
Type: GodotNodePath

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

initial
Type: GodotObject

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

initialVal
Type: GodotNodePath

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

finalVal
Type: SystemObject

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

duration
Type: SystemSingle

[Missing <param name="duration"/> documentation for "M:Godot.Tween.TargetingProperty(Godot.Object,Godot.NodePath,Godot.Object,Godot.NodePath,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.TargetingProperty(Godot.Object,Godot.NodePath,Godot.Object,Godot.NodePath,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.TargetingProperty(Godot.Object,Godot.NodePath,Godot.Object,Godot.NodePath,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.TargetingProperty(Godot.Object,Godot.NodePath,Godot.Object,Godot.NodePath,System.Object,System.Single,Godot.Tween.TransitionType,Godot.Tween.EaseType,System.Single)"]

Return Value

Type: Boolean

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

See Also