Skip to content

Commit 91717ff

Browse files
authored
Update GDExtension tutorial with the hot reload feature (#9618)
Although the tutorial assumed the hot reload feature, it wasn't enabled in the example config file. Also it didn't mention that it only works if it's compiled in debug mode.
1 parent b21addc commit 91717ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tutorials/scripting/gdextension/gdextension_cpp_example.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ loaded for each platform and the entry function for the module. It is called ``g
365365
366366
entry_symbol = "example_library_init"
367367
compatibility_minimum = "4.1"
368+
reloadable = true
368369
369370
[libraries]
370371
@@ -388,6 +389,8 @@ loaded for each platform and the entry function for the module. It is called ``g
388389
This file contains a ``configuration`` section that controls the entry function of the module.
389390
You should also set the minimum compatible Godot version with ``compatability_minimum``,
390391
which prevents older version of Godot from trying to load your extension.
392+
The ``reloadable`` flag enables automatic reloading of your extension by the editor every time you recompile it,
393+
without needing to restart the editor. This only works if you compile your extension in debug mode (default).
391394

392395
The ``libraries`` section is the important bit: it tells Godot the location of the
393396
dynamic library in the project's filesystem for each supported platform. It will

0 commit comments

Comments
 (0)