Hi,
I try to create a simple function and expose it to GDscript, the function should take a Node as the parameter.
this is the function declaration:
void my_func(Node* node);
and this is the function binding:
ClassDB::bind_method(D_METHOD("my_func", "node"), &MyClass::my_func);
but when I compile I got a lot of errors like:
godot-cpp\include\godot_cpp/core/binder_common.hpp(89): error C2440: 'return': impossible to convert from 'const godot::Variant' to 'T'
with
[
T=godot::Node*
]
and so on.
Is it possible to do what I'm trying to do?
thanks.