AnimationNodeTimeSeek

Inherits: AnimationNode < Resource < RefCounted < Object

A time-seeking animation node used in AnimationTree.

Description

This animation node can be used to cause a seek command to happen to any sub-children of the animation graph. Use to play an Animation from the start or a certain playback position inside the AnimationNodeBlendTree.

After setting the time and changing the animation playback, the time seek node automatically goes into sleep mode on the next process frame by setting its seek_request value to -1.0.

GDScriptC#

  1. # Play child animation from the start.
  2. animation_tree.set("parameters/TimeSeek/seek_request", 0.0)
  3. # Alternative syntax (same result as above).
  4. animation_tree["parameters/TimeSeek/seek_request"] = 0.0
  5. # Play child animation from 12 second timestamp.
  6. animation_tree.set("parameters/TimeSeek/seek_request", 12.0)
  7. # Alternative syntax (same result as above).
  8. animation_tree["parameters/TimeSeek/seek_request"] = 12.0
  1. // Play child animation from the start.
  2. animationTree.Set("parameters/TimeSeek/seek_request", 0.0);
  3. // Play child animation from 12 second timestamp.
  4. animationTree.Set("parameters/TimeSeek/seek_request", 12.0);

Tutorials


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.

Previous Next