Преглед на файлове

Clarify seek() in relation to animation_finished

(cherry picked from commit 74e135c90bad1dcaacc3b718deb8ec39318760ee)
kobewi преди 3 години
родител
ревизия
16fb788853
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      doc/classes/AnimationPlayer.xml

+ 1 - 0
doc/classes/AnimationPlayer.xml

@@ -159,6 +159,7 @@
 			<argument index="1" name="update" type="bool" default="false" />
 			<argument index="1" name="update" type="bool" default="false" />
 			<description>
 			<description>
 				Seeks the animation to the [code]seconds[/code] point in time (in seconds). If [code]update[/code] is [code]true[/code], the animation updates too, otherwise it updates at process time. Events between the current frame and [code]seconds[/code] are skipped.
 				Seeks the animation to the [code]seconds[/code] point in time (in seconds). If [code]update[/code] is [code]true[/code], the animation updates too, otherwise it updates at process time. Events between the current frame and [code]seconds[/code] are skipped.
+				[b]Note:[/b] Seeking to the end of the animation doesn't emit [signal animation_finished]. If you want to skip animation and emit the signal, use [method advance].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set_blend_time">
 		<method name="set_blend_time">