diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-12-07 15:38:05 +0300 |
---|---|---|
committer | Yuri Rubinsky <chaosus89@gmail.com> | 2022-12-19 19:12:00 +0300 |
commit | 78d296d7ca4ffc6fd0d0dcdfc8f44e967e7e081c (patch) | |
tree | 754a963cbe7402d108e2a6461885e38930c6a80c /modules/gdscript/doc_classes | |
parent | d34594179a1e9f1ad5351b152f2ccfbd4b119c01 (diff) |
Add a note for `inst_to_dict` to prevent using it on built-in instances
Diffstat (limited to 'modules/gdscript/doc_classes')
-rw-r--r-- | modules/gdscript/doc_classes/@GDScript.xml | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ <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(): |