Quantcast
Channel: Answers for "Keep Top Down 2D camera in bounds of background sprite"
Browsing latest articles
Browse All 6 View Live

Answer by Paikz

Solved it after the answers I've been given + some googling. Here's the script I came up with: private float rightBound; private float leftBound; private float topBound; private float bottomBound;...

View Article



Answer by MorphVGX

This is what worked for me to get the limits for the camera position: float camExtentV = _cam.orthographicSize; float camExtentH = (camExtentV * Screen.width) / Screen.height; Bounds levelBounds =...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images