Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change background color in studio to gray #48

Open
kideternal opened this issue Mar 8, 2017 · 1 comment
Open

Change background color in studio to gray #48

kideternal opened this issue Mar 8, 2017 · 1 comment

Comments

@kideternal
Copy link

kideternal commented Mar 8, 2017

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
Copy link
Owner

Eusth commented Mar 10, 2017

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants