Class SceneSelectionStatePublic Self

The SceneSelectionState represents the shared selection state of SceneObjects in a scene for a KeyWindowBase that implements the ISceneSelectionStateAware interface.

Constructors

Properties

_selection: SceneObject[]

Accessors

  • get isDragSelectionInProgress(): boolean
  • Check whether a drag selection in the scene is in progress.

    Returns boolean

  • get sceneObject(): SceneObject
  • The currently selected sceneObject. If multiple scene objects are selected, returns the first one. Note that this can be null if no objects are selected.

    Returns SceneObject

  • set sceneObject(value): void
  • Parameters

    Returns void

  • get selectedObjectUUIDs(): UUID[]
  • The selected object UUIDs.

    Returns UUID[]

  • set selectedObjectUUIDs(uuids): void
  • Parameters

    Returns void

Methods

  • Clears the selection.

    Returns void

  • Notifies all listeners that the scene selection has changed.

    Returns void

  • Pings the sceneObject, highlighting it in its respective editors.

    Parameters

    Returns void

  • Remove the provided object from the current selection. Triggers selection changed if any object was removed.

    Parameters

    • sceneObject: SceneObject

      The object to remove from the current selection.

    Returns void

  • Remove any of the provided objects from the current selection. Triggers selection changed if any object was removed.

    Parameters

    • sceneObjects: SceneObject[]

      The objects to remove from the current selection.

    Returns void

Events

onChanged: Event<[SceneObject[]], void>

An event called whenever the selection has changed been changed.

onPing: Event<[SceneObject], void>

An event called whenever a scene object is pinged.