ref-wrapped-autocomplete
Minimal reproduction for gdnative / Godot editor bug
Demo showcasing that autocomplete doesn't work for GDNative classes in GDScript when they are wrapped in Ref<> or a pointer is returned.
Tested on: Win10 x64, Godot 3.4.2
CustomClassAlpha
return_beta()
- Returns pointer toCustomClassBeta
return_ref_beta()
- ReturnsRef<CustomClassBeta>
CustomClassBeta
some_method()
- Prints textsome_other_method()
- Prints textmethod_gamma()
- Prints text
How to run?
-
Download the repo, open terminal and run
git submodule update --init --recursive
-
Then generate bindings for
godot-cpp
(See Compiling the C++ bindings) -
Compile the GDNative library by running
scons target=release
-
Test by running the
Main.tscn
scene in/project