I'm trying to zoom in as my game is like a map and I have to click on a certain country to zoom in and change the scene to this country. So I want to zoom the camera slowly and then change the scene from the map scene to the country scene.
Well, the title is "Zoom In and Switch Scenes", so I'm gonna tell you how to do both of those.
In order to achieve a zoom effect, you'll need to modify the field of view of the camera, which I believe is simply called camera.fieldOfView.
To change scenes, you'll first need to make sure that you are
So that you can use the SceneManager class, then call:
SceneManager.LoadScene("insert name of your scene here");
To load a specific scene.
To do one and then the other, increment the field of view over several frames, either using Update() or with a Coroutine or some such, then, after the field of view has reached a certain value, load the new scene. So you zoom in over a number of frames, then load.