Class XRSlideSystem

A game system that only updates when the app is in immersive mode.

Hierarchy

Constructors

Properties

config?: SystemConfig

Mutable reference to the optional SystemConfig component associated with this system.

queries: SystemQueries

Defines what GameComponent the System will query for. This needs to be user defined.

systemConfig?: GameComponentConstructor<SystemConfig>

An optional SystemConfig class for configuring this system.

Accessors

Methods

  • Get a list of all GameObject of the given queryId that are added in this frame in queries. This does not include the GameObjects that gets added in GameSystems that execute after this system.

    Returns

    An array of GameObject instances that were added in this frame and match the query.

    Throws

    An error if the query ID does not exist in the current game system or if the query does not listen to added events.

    Parameters

    • queryId: string

      The ID of the query to retrieve added game objects for.

    Returns GameObject<Object3DEventMap>[]

  • Get a list of all GameObject of the given queryId that are removed in this frame in queries. This does not include the GameObjects that gets removed in GameSystems that execute after this system.

    Returns

    An array of GameObject instances that were removed in this frame and match the query.

    Throws

    An error if the query ID does not exist in the current game system or if the query does not listen to removed events.

    Parameters

    • queryId: string

      The ID of the query to retrieve removed game objects for.

    Returns GameObject<Object3DEventMap>[]