Browse Source

Merge pull request #3398 from Calinou/gdscript-export-tool-script

Document how to update the inspector after setting an exported variable
Rémi Verschelde 5 years ago
parent
commit
706e3b8f28
1 changed files with 9 additions and 0 deletions
  1. 9 0
      getting_started/scripting/gdscript/gdscript_exports.rst

+ 9 - 0
getting_started/scripting/gdscript/gdscript_exports.rst

@@ -181,3 +181,12 @@ initializers, but they must be constant expressions.
     # be exported.
 
     var c = [a, 2, 3]
+
+Setting exported variables from a tool script
+---------------------------------------------
+
+When changing an exported variable's value from a script in
+:ref:`doc_gdscript_tool_mode`, the value in the inspector won't be updated
+automatically. To update it, call
+:ref:`class_Object_method_property_list_changed_notify` after setting the
+exported variable's value.