AnimationNodeStateMachinePlayback

Playback control for AnimationNodeStateMachine.

Allows control of AnimationTree state machines created with AnimationNodeStateMachine. Retrieve with $AnimationTree.get("parameters/playback"). Example:

More...

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getCurrentLength
double getCurrentLength()
getCurrentNode
String getCurrentNode()

Returns the currently playing animation state.

getCurrentPlayPosition
double getCurrentPlayPosition()

Returns the playback position within the current animation state.

getTravelPath
PoolStringArray getTravelPath()

Returns the current travel path as computed internally by the A* algorithm.

isPlaying
bool isPlaying()

Returns true if an animation is playing.

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(AnimationNodeStateMachinePlayback other)
opEquals
bool opEquals(typeof(null) n)
start
void start(String node)

Starts playing the given animation.

stop
void stop()

Stops the currently playing animation.

toHash
size_t toHash()
travel
void travel(String to_node)

Transitions from the current state to another one, following the shortest path.

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Static functions

_new
AnimationNodeStateMachinePlayback _new()

Construct a new instance of AnimationNodeStateMachinePlayback. Note: use memnew!AnimationNodeStateMachinePlayback instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Detailed Description

var state_machine = $AnimationTree.get("parameters/playback") state_machine.travel("some_state")

Meta