3ddelano / ref-wrapped-autocomplete

Gdnative no autocomplete for ref/ptr. minimal reproduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 to CustomClassBeta
  • return_ref_beta() - Returns Ref<CustomClassBeta>

CustomClassBeta

  • some_method() - Prints text
  • some_other_method() - Prints text
  • method_gamma() - Prints text

How to run?

  1. Download the repo, open terminal and run

    git submodule update --init --recursive

  2. Then generate bindings for godot-cpp (See Compiling the C++ bindings)

  3. Compile the GDNative library by running

    scons target=release

  4. Test by running the Main.tscn scene in /project

About

Gdnative no autocomplete for ref/ptr. minimal reproduction

License:MIT License


Languages

Language:Python 56.0%Language:C++ 34.5%Language:GDScript 9.5%