Path: blob/master/doc/classes/AnimationNodeTimeSeek.xml
10277 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="AnimationNodeTimeSeek" inherits="AnimationNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">2<brief_description>3A time-seeking animation node used in [AnimationTree].4</brief_description>5<description>6This 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].7After 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 [code]seek_request[/code] value to [code]-1.0[/code].8[codeblocks]9[gdscript]10# Play child animation from the start.11animation_tree.set("parameters/TimeSeek/seek_request", 0.0)12# Alternative syntax (same result as above).13animation_tree["parameters/TimeSeek/seek_request"] = 0.01415# Play child animation from 12 second timestamp.16animation_tree.set("parameters/TimeSeek/seek_request", 12.0)17# Alternative syntax (same result as above).18animation_tree["parameters/TimeSeek/seek_request"] = 12.019[/gdscript]20[csharp]21// Play child animation from the start.22animationTree.Set("parameters/TimeSeek/seek_request", 0.0);2324// Play child animation from 12 second timestamp.25animationTree.Set("parameters/TimeSeek/seek_request", 12.0);26[/csharp]27[/codeblocks]28</description>29<tutorials>30<link title="Using AnimationTree">$DOCS_URL/tutorials/animation/animation_tree.html</link>31</tutorials>32<members>33<member name="explicit_elapse" type="bool" setter="set_explicit_elapse" getter="is_explicit_elapse" default="true">34If [code]true[/code], some processes are executed to handle keys between seeks, such as calculating root motion and finding the nearest discrete key.35</member>36</members>37</class>383940