浏览代码

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():