Browse Source

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 years ago
parent
commit
10a8a4fb3d
1 changed files with 7 additions and 0 deletions
  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: