2018-07-26 11:56:21 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								<?xml version="1.0" encoding="UTF-8" ?> 
							 
						 
					
						
							
								
									
										
										
										
											2023-07-06 10:08:05 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								<class  name= "AnimationNodeTimeSeek"  inherits= "AnimationNode"  xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation= "../class.xsd" > 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-26 11:56:21 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
									<brief_description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-04-28 17:16:44 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										A time-seeking animation node used in [AnimationTree].
							 
						 
					
						
							
								
									
										
										
										
											2018-07-26 11:56:21 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
									</brief_description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									<description > 
							 
						 
					
						
							
								
									
										
										
										
											2023-04-30 23:32:18 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										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].
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										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 [code]seek_request[/code] value to [code]-1.0[/code].
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										[codeblocks]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										[gdscript]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										# Play child animation from the start.
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										animation_tree.set("parameters/TimeSeek/seek_request", 0.0)
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										# Alternative syntax (same result as above).
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										animation_tree["parameters/TimeSeek/seek_request"] = 0.0
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										# Play child animation from 12 second timestamp.
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										animation_tree.set("parameters/TimeSeek/seek_request", 12.0)
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										# Alternative syntax (same result as above).
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										animation_tree["parameters/TimeSeek/seek_request"] = 12.0
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										[/gdscript]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										[csharp]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										// Play child animation from the start.
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										animationTree.Set("parameters/TimeSeek/seek_request", 0.0);
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										// Play child animation from 12 second timestamp.
							 
						 
					
						
							
								
									
										
										
										
											2023-02-10 11:04:56 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										animationTree.Set("parameters/TimeSeek/seek_request", 12.0);
							 
						 
					
						
							
								
									
										
										
										
											2021-04-17 20:06:32 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										[/csharp]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										[/codeblocks]
							 
						 
					
						
							
								
									
										
										
										
											2018-07-26 11:56:21 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
									</description> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									<tutorials > 
							 
						 
					
						
							
								
									
										
										
										
											2023-04-28 17:16:44 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
										<link  title= "Using AnimationTree" > $DOCS_URL/tutorials/animation/animation_tree.html</link> 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-26 11:56:21 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
									</tutorials> 
							 
						 
					
						
							
								
									
										
										
										
											2024-11-17 18:25:52 +09:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
									<members > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										<member  name= "explicit_elapse"  type= "bool"  setter= "set_explicit_elapse"  getter= "is_explicit_elapse"  default= "true" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
											If [code]true[/code], some processes are executed to handle keys between seeks, such as calculating root motion and finding the nearest discrete key.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
										</member> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
									</members> 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-26 11:56:21 +02:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								</class>