Click or drag to resize

TweenInterpolateProperty Method

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

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

property
Type: GodotNodePath

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

initialVal
Type: SystemObject

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

finalVal
Type: SystemObject

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

duration
Type: SystemSingle

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

Return Value

Type: Boolean

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

See Also