Skip to content

@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 ​

ParameterTypeDescription
interactionXRInteractionSystem | nullThe 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 ​

PropertyModifierTypeDefault valueDescriptionDefined in
runsWhilePausedreadonlytruetrueKeep 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
mouseRaycastspublicnumber0Mouse 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 ​

ParameterTypeDefault value
worldWorldundefined
deltaTimenumber0

Returns ​

void

Implementation of ​

EcsSystem.update