SpatialContainerStateEvent

Represents the events that trigger state transitions for a SpatialContainer. These events describe changes in the SpatialContainer's SpatialContainerState, which are triggered by focus, overlapping and occlusion, or camera visibility transitions. The events can be used to track and react to state changes in real-time.

State Machine

The state machine transitions between states based on the following events:

| Current State |    Event   | Next State |  Transition Description                                |
|---------------|------------|------------|--------------------------------------------------------|
|Any |ON_FOCUSED |Focused |The container gains focus. |
|Focused |ON_UNFOCUSED|Unfocused |The container loses focus. |
|Any |ON_SIGHTED |Sighted |The container enters the camera's field of view. |
|Sighted |ON_UNSIGHTED|Unsighted |The container leaves the camera's field of view. |
|Staged |ON_UNSTAGED |Unstaged |The container is no longer fully visible or is occluded.|
|Unstaged |ON_SIGHTED |Sighted |The container re-enters the camera's field of view. |
|Unstaged |ON_STAGED |Staged |The container becomes fully visible and not occluded. |

Definitions:

Entries

Link copied to clipboard

Event indicates that the SpatialContainer gains focus.

Link copied to clipboard

Event indicates that the SpatialContainer loses focus.

Link copied to clipboard

Event indicates that the SpatialContainer enters the camera's field of view.

Link copied to clipboard

Event indicates that the SpatialContainer leaves the camera's field of view.

Link copied to clipboard

Event indicates that the SpatialContainer becomes staged (is fully visible and not occluded).

Link copied to clipboard

Event indicates that the SpatialContainer becomes unstaged (is no longer fully visible or is occluded).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.