Eusth / HoneySelectVR

MIT License
109 stars 28 forks source link

Change background color in studio to gray #48

Open kideternal opened 7 years ago

kideternal commented 7 years ago

This is really easily done. Just change VRCamera.cs line 137 to:

targetCamera.backgroundColor = Color.gray;

I've played with other colors and gray seems to work best, it also really gives the old eyeballs some peace. ;)

(I don't want to check stuff in until I'm certain I'd be doing it right.)

Eusth commented 7 years ago

It's actually possible to use the color that you can define in the Studio itself, but I haven't gotten around to implementing it in a clean way.

var cam = Camera.allCameras.LastOrDefault(c => c.name == "2DBGCamera");
if(cam)
{
    VR.Camera.GetComponent<Camera>().backgroundColor = cam.backgroundColor;
}