Forum Discussion
ezRocket
11 years agoProtege
Switching between Rift cameras + working example
Edit: Below is my original post. It has since then been solved. Here's a working example. I have been trying to find a way to switch between two Rift cameras and have yet to find something that wor...
ezRocket
11 years agoProtege
Good idea about moving the OVRmanager, gonna try that now.
EDIT:
Moved the OVRManager script to a new GameObject, deleted it from the Rift cameras and...
Well holy shit. It works! Works flawlessly! Awesome. Thanks drash! :D
Here's the full code I'm using now:
It now correctly de/activates the cameras!
EDIT:
Moved the OVRManager script to a new GameObject, deleted it from the Rift cameras and...
Well holy shit. It works! Works flawlessly! Awesome. Thanks drash! :D
Here's the full code I'm using now:
#pragma strict
public var ovrcam1 : GameObject;
public var overheadcam : GameObject;
var isoverheadcam : boolean;
function Start () {}
function Update () {
if (Input.GetKeyDown(KeyCode.V))
{
if (!isoverheadcam)
{
isoverheadcam = true;
ovrcam1.SetActive(false);
overheadcam.SetActive(true);
} else if(isoverheadcam)
{
ovrcam1.SetActive(true);
overheadcam.SetActive(false);
isoverheadcam = false;
}
}
}
It now correctly de/activates the cameras!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 1 year ago
- 2 years ago