소스 검색

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 년 전
부모
커밋
706e3b8f28
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  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.