The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes


I'm creating a plugin with gdnative c++.
I created a simple class, compile the library, make a simple script working according to the official example.

Now I want to add my stuff like a custom node. The gdscript editor can complete my class name and access it's property, but I can't see it in the window to add a new node to a scene with [ctrl+a].

How to do that?

Godot version 3.4
in Engine by (24 points)

2 Answers

0 votes

Open the Project Settings and click on the Plugins tab. Your plugin should be in the list. If it is not showing, click on the Update button in the top-right corner. Assuming the plugin is inactive on the Status column; click on the status to select Active.

by (1,406 points)

Hm, the problem is not about the plugin not being updated. It's about registering a Node that can be used in the editor that has been make with gdnative.

0 votes

First, learn how to create editor plugin aka tool: with GDScript.

Then, in C++ use register_tool_class<YourClass>() instead as you would normally use register_class<YourClass>() for your custom type.

by (1,646 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.