Click or drag to resize

AnimationBezierTrackInsertKey Method

Inserts a Bezier Track key at the given time in seconds. The track_idx must be the index of a Bezier Track.

in_handle is the left-side weight of the added Bezier curve point, out_handle is the right-side one, while value is the actual value at this point.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int BezierTrackInsertKey(
	int trackIdx,
	float time,
	float value,
	Vector2? inHandle = null,
	Vector2? outHandle = null
)

Parameters

trackIdx
Type: SystemInt32

[Missing <param name="trackIdx"/> documentation for "M:Godot.Animation.BezierTrackInsertKey(System.Int32,System.Single,System.Single,System.Nullable{Godot.Vector2},System.Nullable{Godot.Vector2})"]

time
Type: SystemSingle

[Missing <param name="time"/> documentation for "M:Godot.Animation.BezierTrackInsertKey(System.Int32,System.Single,System.Single,System.Nullable{Godot.Vector2},System.Nullable{Godot.Vector2})"]

value
Type: SystemSingle

[Missing <param name="value"/> documentation for "M:Godot.Animation.BezierTrackInsertKey(System.Int32,System.Single,System.Single,System.Nullable{Godot.Vector2},System.Nullable{Godot.Vector2})"]

inHandle (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)
outHandle (Optional)
Type: SystemNullableVector2
If the parameter is null, then the default value is new Vector2(0, 0)

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.Animation.BezierTrackInsertKey(System.Int32,System.Single,System.Single,System.Nullable{Godot.Vector2},System.Nullable{Godot.Vector2})"]

See Also