Question by
valizad · Dec 26, 2021 at 06:45 AM ·
cameracamera-movementboundscamera viewport
Create Camera Bounds. In the camera with a different Viewport rect
i have a camera with this Viewport rect:
i need make margin Bounds for camera from sprite. My codes work properly if Viewport rect is in the default state. But now orthographicSize is considered an idiot if the size of the camera changes.
inspector.png
(22.1 kB)
camera-scripts.png
(28.6 kB)
Comment
Your answer
Follow this Question
Related Questions
Try To Set Camera Bounderis 3D 0 Answers
Camera bounds with zoomable camera 1 Answer
Keep 2 players on screen by moving camera back 2 Answers
how to resize my orthographic Camera to fit a dynamically generated grid of cubes(Mine Sweeper) 0 Answers
How to make camera follow player from point to point 2 Answers