Quantcast
Channel: Answers for "Keep Top Down 2D camera in bounds of background sprite"
Browsing index pages (6 articles)

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


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

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


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
Browsing index pages (6 articles)


Latest Images