We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e13ac6f + 6ebe748 commit dd45891Copy full SHA for dd45891
tutorials/scripting/gdnative/gdnative_cpp_example.rst
@@ -255,7 +255,12 @@ call to find out which methods can be called on our NativeScript and which
255
properties it exposes. The second is our ``_process`` function, which will work
256
exactly the same as the ``_process`` function you're used to in GDScript. The
257
third is our ``_init`` function which is called after Godot has properly set up
258
-our object. It has to exist even if you don't place any code in it.
+our object.
259
+
260
+.. warning::
261
262
+ The ``_init`` function has to exist even if you don't place any code in it.
263
+ Otherwise, the class won't be instantiable.
264
265
Let's implement our functions by creating our ``gdexample.cpp`` file:
266
0 commit comments