LAZR.PW
Stuff I'm working on.

Thursday, 12 June 2014

Unity 3D - Blue Bars on Sides of Camera/Screen (Background Showing)

I saw a post on stackoverflow(here https://stackoverflow.com/questions/24068577/stop-camera-from-view-going-past-background/24191670#24191670), and thought I'd give an answer with some larger screenshots to clarify the point. It's really a simple problem, but one I faced when new to Unity 3D.

You may be having problems with the resolution or aspect ratio. If you're using free aspect and using the "Maximize On Play" option then the viewport will be made wider than normal due to being squashed by the Unity control panel and notification bar. Changing the res/aspect to your target aspect/res should fix the problem.






Hope this helps.

No comments:

Post a Comment