Skip to content

Commit

Permalink
Document how to update the inspector after setting an exported variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou committed Apr 17, 2020
1 parent caa1a2e commit d2a420b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions getting_started/scripting/gdscript/gdscript_exports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit d2a420b

Please sign in to comment.