- Home /
Getting Screen Bounds
I want to create a physical bounds around the screen preventing the ball in the scene to fall, im using an orthographic camera, i want to cover all resulotion thru code, so i can i get the upper left side and the leangth of the realworld screen?
*In the game there is a ball laying on the ground and you apply force on him by clicking aroung it to make it jump, the game is working but i nees to voer the bounds issue, thanks in advance :)
Comment
Answer by Zarack · Dec 23, 2012 at 10:38 PM
You might be able to create a 2D area with the Screen.width and Screen.height options from http://docs.unity3d.com/Documentation/ScriptReference/Screen.html. I'd start there.