How to get variable from Gdnative in Gdscript?

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

If I had a variable x in gdscript from another script I could go get_node(“this_node”).x to access it. But when accessing a GDNative variable I would have to either register a method that returns the variable or register a property but then it shows up in the editor. Is there a way so that it doesn’t show up in the editor?

:bust_in_silhouette: Reply From: sash-rc

I think it should be a method then.