switch between multiple game views to achieve results2.2.3Achieve Results
Add the script toCameraswitch, and select this game object in theInspectorView to view the properties of the script component. SetCamerasand theShortcutsin theSizeproperty is3, the former specifies in turnMain Camera,Camera1and theCamera2, which in turn specifies1,2and the3, forelement0~3the value of the property. 2-9shown in this article is selected fromA collection of unity game development Tips.
Figure 2-9 specify values for each property in the Script Component
unity on the keyboard respectively. 1 , 2 and 3 When the button is pressed, the view in the game will switch to the key, 2-10 This article is selected from unity Game development Skills Collection
Figure 2-10 press the corresponding key on the keyboard to see the different game views
Switch between multiple game views to achieve results