The HMDSimulator script exposes the following settings which are configurable within the Unity Editor:
- Disable in Standalone
- If enabled, will deactivate the [VRSimulator] gameobject when running a standalone build of your scene, thereby completely disabling the VR Simulator's functionality when running your project outside of the Unity Editor.
- Display Help Boxes
-
If enabled, will display helpful explanations in the Unity Editor for all VRSimulator scripts (disabled by default).
- Log Diagnostics
- If enabled, will display Immerseum SDK diagnostic messages in the Unity Console (disabled by default).
- Log Input Actions
-
If enabled, will log any to the Unity Console (disabled by default).
- Camera Rig
-
The that you wish to use for simulation. If left empty (default), will use whichever is present in your scene - if more than one is present, will default to SteamVR:[CameraRig].
- HMD Discovery Time
-
Neither the
SteamVR plugin nor
Oculus Utilities for Unity discover a connected HMD right away. It always takes a little time - maybe a few milliseconds, maybe a second or two - depending on your motherboard, graphics card, the resources on your system, etc. This setting lets you configure how many seconds to wait for an HMD before giving up and simulating the HMD. (default: 2 seconds)
-
|
|
On our testing rigs, we've found that an HMD will typically be discovered in about 1.2 seconds if it's connected. But as this has varied widely (even on the same machine), we've found that 2 seconds (our default value) works well as a good compromise. Your mileage may vary! |
- Height
-
This is the height / position that you wish to simulate. Your options are:
-
- Standing (default) - uses User Profile height if available, otherwise defaults to 1.755 (which for Oculus sets eye-height at approximately 1.65).
- Seated - uses User Profile data if available, otherwise defaults 1.06.
- Custom - If selected, you can enter your own targeted height at whatever value you choose.
- Simulate Controllers
-
If enabled, will simulate controllers if no HMD is detected. (default: disabled)
- Controller Primitive
-
This is the Unity
primitive type that you wish to use when simulating controllers. Your options are:
-
- Cube
- Sphere (default)
- Cylinder
- Capsule
- Custom - If selected, you can select any prefab from your Assets folder. You can use different prefabs for left-hand right controllers if you want.
- Controller Scaling
-
Determines the size of your simulated controller. Assumes each primitive has a size of (1, 1, 1) and scales them up or down appropriate. If using a custom controller primitive, scaling is determined by the prefab itself. (default: 0.05)
See Also