RSX Code Reference
    Preparing search index...

    Class SceneSelectionStatePublic Self

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

    Index
    _selection: SceneObject[]
    • 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: SceneObject): void

      Parameters

      Returns void

    • get selectedObjectUUIDs(): UUID[]

      The selected object UUIDs.

      Returns UUID[]

    • set selectedObjectUUIDs(uuids: UUID[]): void

      Parameters

      Returns void

    • 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

    onChanged: Event<[SceneObject[]]>

    An event called whenever the selection has changed been changed.

    onPing: Event<[SceneObject]>

    An event called whenever a scene object is pinged.