How to zoom in a game that happens within the canvas only?
Hey, I'm trying to make a zoom effect in a game but, the way it was made, it was set up to happen in the Canvas only (the game is made all of clickable buildings that serve as buttons within the canvas). Changing the camera orthographic size does nothing, I assume that is because the Canvas is set to Screen Space - Camera with the Main Camera as the render camera. What alternatives do I have to zoom in the canvas? I need a system that zooms in at a specific location the player wants to. Thanks!
Answer by lucathyel · Mar 26, 2019 at 01:16 AM
Not sure if it helps someone, but to solve this I just made a big master empty game object on top of the hierarchy, put all of the objects as its children, and then scaled it in/out as player prompts. lol
Answer by emmaeus727 · Jan 07, 2021 at 12:23 AM
Make sure your canvas is set to the world in the inspector :)
Your answer
Follow this Question
Related Questions
Zoom or magnify glass effect without camera. Help!! 0 Answers
How to zoom-in, in VR 0 Answers
Canvas not rendered by camera 1 Answer
Android Camera does not show Image 1 Answer
what is the main camera size? 1 Answer