From 78d296d7ca4ffc6fd0d0dcdfc8f44e967e7e081c Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Wed, 7 Dec 2022 15:38:05 +0300 Subject: Add a note for `inst_to_dict` to prevent using it on built-in instances --- modules/gdscript/doc_classes/@GDScript.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/gdscript/doc_classes') diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index 4981750b7d..fd748ea569 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -106,6 +106,7 @@ 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(): -- cgit v1.2.3