if I understand it correctly . I need a string name for the menu, and a obj and a fcuntion to call when I click on the menu. But I am getting editor/editor_node.cpp:2437 - Error calling function from tool menu: 'PackedScene::instance_ui': Method not found.
I am not sure how to use this, and there doesn’t seem to have any example on it
You add your GUI items to the editor once your callback method has been fired using add_child.
Thanks, this works. I now just need to implement this into my tool
lowpolygon | 2020-01-15 06:44
Also use get_editor_interface().get_base_control().add_child instead of just add_child. You GUI elements will automatically inherit the current editor them get_editor_interface().get_base_control().add_child.