title: Set a background to the area out of camera limits (Viewport Rect) in Unity3D
body: <p>I am talking about the Camera settings in Unity3D.</p>
  
  <p>I'm trying to figure out if I can change (at least) the background color of the gray area in the screenshot. The limits of the camera are changed programmatically. The motivation lies in the fact that the playing area has to change dynamically based on whether a child or an adult is playing. The screen is huge around more than 83 inches. When rescaling the playing area, the area that is not drawn is gray and a bit ugly, I would like to know if you can define at least the color, or better still if possible with an image.</p>
  
  <p>The screenshot you see is the screen capture in fullscreen mode, so it includes all the pixels.</p>
  
  <p><a href="https://i.stack.imgur.com/avD6b.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/avD6b.jpg" alt="enter image description here"></a></p>
  
  <p>After this brief explanation in words and images, let's go to the specifics of the technical details. This is how I resize the room design area:</p>
  
  <pre><code>public static void SetViewportCalibration()
  {
      var camera = Camera.main;
      camera.pixelRect = new Rect(MinX, MinY, MaxX, MaxY);
  }
  </code></pre>
  
  <p>Is it possible to set the color of that gray area outside the new <code>Rect(MinX, MinY, MaxX, MaxY)</code>?</p>