Forum Discussion
multimedial
12 years agoExplorer
Little annoyances with the OVRController prefab
Hi there, as I am currently working in Unity a lot, I am using the OVRController as the main camera view in the world. However, due to its structure, it is somewhat painful to use... The ma...
CaliberMengsk
12 years agoExplorer
"envaal" wrote:
I'm having my settings discarded all the time too, I change the background colour, use all the save functions I know, and still it changes back to the dark blue... What am I doing wrong?
Same goes for FOV settings.
That's a bug. Find the "OVRCameraController.cs" script, and find the function where it sets the background color. Should look like this:
public Color BackgroundColor
{
get{return backgroundColor;}
set{backgroundColor = value; UpdateCamerasDirtyFlag = true;}
}
The line above that is where it defines the variable. Make it public, save it, and now setting the color on the main OVRCameraController object should now change it for both cameras (at least when the play button is hit)
I set mine to black by default but all total that section should look like this:
// UNITY CAMERA FIELDS
// Set the background color for both cameras
public Color backgroundColor = Color.black;//new Color(0.192f, 0.302f, 0.475f, 1.0f);
public Color BackgroundColor
{
get{return backgroundColor;}
set{backgroundColor = value; UpdateCamerasDirtyFlag = true;}
}
I'm fairly certain that if you did the same to the clipping planes below that section, it would also fix the issue with the clipping planes not updating. It would probably also fix the FOV not being able to be changed by many as well.
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
- 1 year ago
- 12 years ago
- 9 years ago
- 7 months ago