Is there a gdnative-cpp alternative to export (NodePath) var path_to_node ???

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SupToasty

I know the register_property((char *)"name", &class::variable, default_value) exists along with its setter getter alternative, but I don’t know how to get either working with NodePath. It would be nice to dynamically assign nodes using editor properties, so i don’t have to have hard coded node names and scene structures when using gdnative c++ bindings.

:bust_in_silhouette: Reply From: hungrymonkey

I think that is outside the scope of GDNative.

:bust_in_silhouette: Reply From: Accessory

This worked for me:

register_property<TestClass, NodePath>("Test", &TestClass::test_path, "");

Tried it with Godot/godot-cpp 3.4