@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / UIInteractionSystem
Class: UIInteractionSystem ​
Defined in: systems/UIInteractionSystem.ts:102
Implements ​
Constructors ​
Constructor ​
ts
new UIInteractionSystem(interaction, options?): UIInteractionSystem;Defined in: systems/UIInteractionSystem.ts:141
Parameters ​
| Parameter | Type | Description |
|---|---|---|
interaction | XRInteractionSystem | null | The XR interaction system, or null in a world with no XR (flat 3D experiences) — the mouse path still works via options.inputSystem. |
options? | { inputSystem?: InputSystem; } | - |
options.inputSystem? | InputSystem | - |
Returns ​
UIInteractionSystem
Properties ​
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
runsWhilePaused | readonly | true | true | Keep ticking while the world is paused. Leave it unset for anything that moves the game on: such a system stops at world.pause() and picks up where it was at world.resume(). | systems/UIInteractionSystem.ts:103 |
mouseRaycasts | public | number | 0 | Mouse raycasts made, for tests and the profiler. | systems/UIInteractionSystem.ts:134 |
Methods ​
update() ​
ts
update(world, deltaTime?): void;Defined in: systems/UIInteractionSystem.ts:155
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
world | World | undefined |
deltaTime | number | 0 |
Returns ​
void

