Preferences API

editor.setPreference(path, value)
  • 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

Parameters:path – the path of the preference item

Return the preference item value.

Parameters:categoryName – optional, if specified, will select the category when opening the window

Show the preferences window.