Hypervue for unity

documentation & guide

scripting

1. Accessing Magnetic 3D Camera

To change any property of the Magnetic 3D Camera in a script, get a reference to it first.

public Magnetic3D.Magnetic3DCamera camera;
2. Focal Length

Change the Focal Length property.

camera.focalLength = 55f;
3. Interocular Distance

Change the Interocular Distance property.

camera.interOcularDistance = 0.2f;
4. Camera Scale

Change the Camera Scale property.

camera.UpdateCameraScale(0.8f);
5. Camera Type

Change the Camera Type property.

camera.cameraType = Magnetic3D.Magnetic3DCamera.M3DcameraTypes.Multiview;
camera.OnValidate();