Menu Bar API

editor.addWindowMenuItem(itemText, func, info, defaultToolWindow)
  • itemText - the text for the tools menu item
  • func - the callback function called when the item is clicked
  • info - a table with info about this window menu item, with the following fields:
    • experimental - boolean, the extension tool is experimental if true, and it will be added to the Experimental submenu
    • gameplay - boolean, if true, then this extension tool will be shown on the gameplay Window menu (reduced editor, for gameplay only), but when full editor is on, it will also be visible in the Window menu
  • defaultToolWindow - if true, then this menu item will be shown at the top of the Window menu

Add a new item in the main menu’s Window.

Last modified: 7 December 2021, at 14:30

Any further questions?

Join our discord