Skip to content

Embedded Binding Interface

Lawrence Wong edited this page Sep 18, 2018 · 7 revisions

Enable Binding Interface in project

  • Goto VIU Settings and check following options
    • VIVE device support (Required)
    • Load Binding Config on Start (Optional)
    • Enable Binding Interface Switch (Required)

binding_interface_01

Open Binding Interface in running app or editor playing mode

  • By default, you can press RightShift + B to open the binding interface
    • Make sure your app gets input focus (by clicking the app preview window or editor scene window)
  • Use your mouse to control the UI shown in the app preview window or editor scene window
    • UI won't shown in VR headset

Create Bindings

  1. Press '+' icon to add a new binding

add binding

  1. Select preferred device

select device

  1. Select preferred role

select role

  1. Done!

select role

Save/Load Bindings Config

  • If "Load Binding Config on Start" is enabled, binding interface will automatically load the config (if exists) when app started
  • The config file created by the binding interface is simply written in JSON format
{
    "roles": [
        {
            "type": "HTC.UnityPlugin.Vive.BodyRole",
            "bindings": [
                {
                    "device_sn": "LHR-00DCE3B7",
                    "device_model": 3,
                    "role_name": "RightFoot",
                    "role_value": 4
                }
            ]
        }
    ]
}