Menu with Show Terminal button

Use this script to open the VRED terminal via a custom entry from the VR Menu. Once this is setup in the Variant Sets Scrpt tab, a Show Terminal button will appear in your virtual VR Menu.

VR Menu with Show Terminal button

  1. In the Variant Sets module, click the Script tab.

  2. From the toolbar, click Add Variant Set icon.

  3. Rename the new variant set to VR_Terminal.

  4. Copy and paste the following script into the Script window.

    # Create VR menu button
    vr_terminal = vrImmersiveUiService.createTool("VR_Terminal")
    
    # Set text label on button
    vr_terminal.setText("Show\nTerminal")
    
    # Set module to display when clicked
    vr_terminal.setViewContent('Terminal')