Setting 2D Screen Boundaires
I have tried but unsuccessfully to create a C# script to limit my player from moving outside the camera's view port. I only need this to work for the width of the screen as it is an infinite runner based game. Any help would be greatly appreciated, thank you!
Comment
Answer by jgodfrey · Apr 26, 2016 at 02:24 AM
This should be what you need.
http://answers.unity3d.com/questions/798586/limit-movement-of-object-based-on-screen-size-unit.html