Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question how can i change the background color of the build window?

Discussion in 'Windows' started by canslp, Aug 27, 2023.

  1. canslp

    canslp

    Joined:
    May 6, 2019
    Posts:
    36
    i would really like to be able to set the background color of the build window at runtime, is there any way for me to access that parameter from within unity? i want to have a fixed aspect ratio, which means that there are black bars on the sides of the canvas- if i can't change this color manually, is there a way for me to emulate the effect of having a fixed camera ratio with a solid background?
     
  2. bugfinders

    bugfinders

    Joined:
    Jul 5, 2018
    Posts:
    1,378
    Build window? I think you mean the scene and yes you can change that
     
  3. canslp

    canslp

    Joined:
    May 6, 2019
    Posts:
    36
    no i mean the window when you build the game. the background color of that window, outside of the game canvas
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,628
    Have a secondary camera which is set to clear to your desired background color.
     
  5. canslp

    canslp

    Joined:
    May 6, 2019
    Posts:
    36
    i'm not sure i understand. to be clear i am talking about the background color of the build window- which by default is black
    upload_2023-8-28_21-19-54.png