mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Add a note for inst_to_dict to prevent using it on built-in instances
				
					
				
			This commit is contained in:
		
							parent
							
								
									d34594179a
								
							
						
					
					
						commit
						78d296d7ca
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -106,6 +106,7 @@
 | 
				
			||||||
			<param index="0" name="instance" type="Object" />
 | 
								<param index="0" name="instance" type="Object" />
 | 
				
			||||||
			<description>
 | 
								<description>
 | 
				
			||||||
				Returns the passed [param instance] converted to a Dictionary. Can be useful for serializing.
 | 
									Returns the passed [param instance] converted to a Dictionary. Can be useful for serializing.
 | 
				
			||||||
 | 
									[b]Note:[/b] Cannot be used to serialize objects with built-in scripts attached or objects allocated within built-in scripts.
 | 
				
			||||||
				[codeblock]
 | 
									[codeblock]
 | 
				
			||||||
				var foo = "bar"
 | 
									var foo = "bar"
 | 
				
			||||||
				func _ready():
 | 
									func _ready():
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue