Changed code sample to runtime class to match GDScript default.
Recorded a new animation showing the desired result inside game window.
Changed the wording around SConstruct file to make it less intimidating.
Added link to IDE setup in building from source documentation.
Co-authored-by: tetrapod <145553014+tetrapod00@users.noreply.github.com>
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.
- Mention additional language bindings that support 4.x (already listed
on the FAQ and List of features pages).
- Document compatibility issues with double-precision builds.
- Remove `-j4` flag from example as SCons uses most CPU cores
automatically by default in godot-cpp now.
In the "*.gdextension" code block, the [Icon] tag does not work in 4.1.1.stable version, and it does not match the naming conventions of other tags. I test it, [icons] tag is worked well. In addition, I added a blank lines between the tag and the content to make it more consistent with other "*.gdextension" code block formatting.
Update with capnm's suggestion. Thank you all for your attention and reply!
A node that is loaded through GDExtension can have a custom icon. Icon's path can be added via the `gdextension` file.
(See https://github.com/godotengine/godot/pull/75472).
Commit makes a mention of this in the C++ tutorial.
Using Windows 10 and Godot 4.0.2 Mono
The gdexample.gdextension file used in the example project is not being recognized by my version of Godot. I don't know the exact reason but I'm guessing it is because it doesn't specify whether or not it is supposed to be a debug or release file.
My changed .gdextension file is the same as the one that is available under godot-cpp\test\demo\example.gdextension. With this one it worked with no problems.
When adding the getter and setter functions to the example project a void has been added to the constructor in line 439 which was previously not there (in line 213) and is also causing the error C2533: constructors not allowed a return type. Simply removing it again fixes it.
Previously, the section on ADD_SIGNAL was a little convoluted and not entirely correct. I've fixed mild grammatical issues and expanded on it for new programmers, addressing these issues.
It's `Variant::FLOAT` in the bindings, which is always a double.
Changed other member variables for consistency so there's no implicit
conversions between float and double.
Fixes https://github.com/godotengine/godot-cpp/issues/1073.