How to make toolbar godot plugin?

Godot Version

v4.4.stable.official [4c311cbee]

Question

I want to create a dropdown menu with some actions for my custom node type. This exact thing that MeshInstance3D has - see picture. I’ve looked into plugin documentation, but this one seems to be missing? Maybe it’s a more involved setup?

You can add controls there with EditorPlugin.add_control_to_container() and specifying CONTAINER_SPATIAL_EDITOR_MENU for 3D or CONTAINER_CANVAS_EDITOR_MENU for 2D from the CustomControlContainer enum.

1 Like