I’m working on a game where I want to be in a top-down view where a player clicks on a grid for their actions. Then I want to jump into an over-the-shoulder view to watch the action carry out. It looks like I can either set up two cameras and enable/disable them when needed or I can programmatically move the main camera. I was wondering if there is a good reason to pick one solution over another or if it is completely a style choice.
That seems more of a style choice. As in, would you want to smoothly animate from the one camera angle to the other or switch instantly by turning one off and the other on. If you decide you want a transition, there’s many ways to do that. I’d suggest using either cinemachine, which has an option that allows you to smoothly blend between two separate cameras, or iTween. You can use iTween on a single camera and it uses a single line of code that’ll transition to the position you’d like. Either way you decide, I suggest you check out iTween on the asset store in general. It is one of the most powerful tools I’ve used throughout developing multiple projects. Hope this information helps!
Awesome! Thanks!!
Take a look at cinemachine. It is free and covers that.
You can see an example of camera transition done this way here:
You may want different camera settings for the top down view vs the over the shoulder view. Maybe you want some map icons visible overhead but not over shoulder. Maybe you need different view distances, or post processing. If you do want such differences between the cameras, I’d probably go with 2 different cameras.