Class ComponentPickerSettings

The ComponentPickerSettings class stores user settings for the component picker such as favorite components and most recently used components.

Hierarchy (view full)

Constructors

Properties

favoriteComponentTypes: Set<string>

The component names that have been favorited by the user.

showOnlyProjectComponents: boolean

Only show project components in the UI.

Accessors

  • get isGlobal(): boolean
  • Gets the settings.

    Returns boolean

Methods

  • Marks the settings as dirty and invokes the onDirty event handler.

    Returns void

    This method should be invoked after making a change, so subsystems such as a viewport cna be updated. If the settings are the shared editor settings, the editor settings will be marked for autosave.

Events

onDirty: Event<[ComponentPickerSettings], void>

Invoked when the settings changed.

This is an internal event. Do not subscribe directly to it, use UserProjectSettings.onSettingsChanged.