Skip to content

Simulator

ChengNan Yang edited this page Mar 22, 2018 · 12 revisions
  • Simulator is a fake VRModule that spawn/remove fake devices, create fake tracking and fake input events.
  • Requires checking the Simulator support toggle in Edit > Preferences... > VIUSettings.
  • Simulator can only be enabled when no VR device detected.
  1. There are 2 ways to manipulate the fake devices
  2. Handle events by script manually
    1. HTC.UnityPlugin.VRModuleManagement.VRModule.Simulator.onUpdateDeviceState
      1. Invoked each frame when VRModule performs a device state update
      2. Write device state into currState argument to manipulate devices
      3. Read-only argument prefState preserved device state in last frame
  3. Use Keyboard-Mouse control (can be disabled in VIUSettings)
Clone this wiki locally