浏览代码

Update gdnative-cpp-example.rst (#2234)

Add note to specify when to expect Godot to auto-reload newly added/removed properties.
Fredia Huya-Kouadio 6 年之前
父节点
当前提交
10a8a4fb3d
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tutorials/plugins/gdnative/gdnative-cpp-example.rst

+ 7 - 0
tutorials/plugins/gdnative/gdnative-cpp-example.rst

@@ -567,6 +567,13 @@ a property has been added to our interface.
 You can now change this property and when you run your project, you will
 You can now change this property and when you run your project, you will
 see that our Godot icon travels along a larger figure.
 see that our Godot icon travels along a larger figure.
 
 
+.. note::
+    The ``reloadable`` property in the ``gdexample.gdnlib`` file must be set to ``true`` for the Godot editor
+    to automatically pick up the newly added property.
+    
+    However, this setting should be used with care especially when tool classes are used, 
+    as the editor might hold objects then that have script instances attached to them that are managed by a GDNative library.
+
 Lets do the same but for the speed of our animation and use a setter and getter function.
 Lets do the same but for the speed of our animation and use a setter and getter function.
 Our ``gdexample.h`` header file again only needs a few more lines of code:
 Our ``gdexample.h`` header file again only needs a few more lines of code: