Lens Scripting API
    Preparing search index...

    This class helps bridge native SIK components with SpectaclesSyncKit if SpectaclesSyncKit is present in the lens and isSynced is enabled for certain SIK components, such as ScrollView, Slider, ToggleButton, Container, and InteractableManipulation.

    This class is not meant to be used by developers for syncing logic, please use SpectaclesSyncKit APIs directly!

    Index

    Constructors

    Properties

    getInstance: () => SyncKitBridge

    Accessors

    • get networkIdTools(): any

      Returns any

    • get sessionController(): any

      Returns any

    • get SyncEntity(): any

      Returns any

    Methods

    • Create a SyncEntity for a given script if SyncKit is present within the lens.

      Parameters

      Returns any

      a SyncEntity if SyncKit is present, null if otherwise.

    • Maps a quat local to the LocatedAt component's transform to a world quat.

      Parameters

      Returns quat

    • Maps a mat4 local to the LocatedAt component's transform to a world mat4.

      Parameters

      Returns mat4

    • Maps a vec3 local to the LocatedAt component's transform to a world vec3.

      Parameters

      Returns vec3

    • Maps a world quat into a quat local to the LocatedAt component's transform.

      Parameters

      Returns quat

    • Maps a world mat4 into a mat4 local to the LocatedAt component's transform.

      Parameters

      Returns mat4

    • Maps a world vec3 into a vec3 local to the LocatedAt component's transform.

      Parameters

      Returns vec3