소스 검색

Add a note for `inst_to_dict` to prevent using it on built-in instances

Yuri Rubinsky 2 년 전
부모
커밋
78d296d7ca
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      modules/gdscript/doc_classes/@GDScript.xml

+ 1 - 0
modules/gdscript/doc_classes/@GDScript.xml

@@ -106,6 +106,7 @@
 			<param index="0" name="instance" type="Object" />
 			<description>
 				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]
 				var foo = "bar"
 				func _ready():