Search code examples
cameraunity-game-engineunityscript

How can I change my game resolution with changing camera size?


Hello Everyone I am new In unity and I don't know more about Unity Camera. I am Working On one Game right now And In this game I set One background Image Which is look pretty in Free Aspect Ratio. But at run Time When I change the resolution of game the size of the background is changed.and I set 3D Texts on It and Their Position has also changed. I have seen Couple of Tutorials On It but That Does't feet to my requirement, so can any One help me or Explain me that How It works Or Give me any Sample code.


Solution

  • Don't use Background image directly. Just add GUITexture to your scene Then Put your Background Image to GUITexture and see this LINK add the code. CHECK