@kognifai/cogsengine
    Preparing search index...

    Class MenuXR

    Index

    Constructors

    • Parameters

      • runtime: Runtime
      • options: any[] | IMenuOptionsXR[]
      • width: number = 1024
      • height: number = 512
      • cameraDistance: number = 4
      • controlXR: any = undefined

      Returns MenuXR

    Properties

    active: boolean = false
    billboard: Plane
    cameraDistance: number = 5
    contentHeight: number = 512
    contentWidth: number = 1024
    controlXR: any
    css: string = ""
    currentOption: number = 0
    iframe: HTMLIFrameElement
    iframedoc: any
    options: any[] | IMenuOptionsXR[]
    runtime: Runtime

    Methods

    • Returns void

    • Parameters

      • stylesheet: string

      Returns void

    • Returns void

    • Returns void

    • Parameters

      • a: number
      • b: number

      Returns number

    • handler for directions, and probably later: various button presses/touches while in menu

      Parameters

      • action: string

      Returns Promise<void>

    • Returns boolean

    • Parameters

      • html: string

      Returns Promise<void>

    • Parameters

      • overWriteExisting: boolean

        search for a matching id/label entry and replace the function of the element when false (append entry at the end of array if no matches found). Substitute the whole array when true

      • newOptions: any[]

        array of new options

      Returns void

    • Returns void

    • Returns Promise<void>