editor.addPreferencesPage(name, uiFunc, sortIndex)
- name - the name of the custom preference page, will appear in the left side list in the Preferences window
- uiFunc - the UI function where you render and handle the preferences page’s imgui
- sortIndex - optional, the sort index which will be used to sort the page names, the higher the upper in the list this page name will be
Add a new preferences page.
editor.removePreferencesPage(name)
- name - the name of the custom preference page
Remove a preferences page.
editor.showPreferences()
Show the preferences window.