Preferences API

editor.setPreference(path, value)
Parameters:
  • path – the path of the preference item (Example path: “gizmos.objectIcons.fadeIcons”)
  • value – the value of the preference item

Set a new value for the preference item. The onEditorPrefrenceValueChanged(path, value) hook will be called

editor.getPreference(path)
Parameters:path – the path of the preference item

Return the preference item value.

editor.showPreferences(categoryName)
Parameters:categoryName – optional, if specified, will select the category when opening the window

Show the preferences window.