Switch between multiple game views to achieve results

Source: Internet
Author: User
Switch between multiple game views to achieve 2.2.3 effect

Add the script to Cameraswitch and select the game object to view the properties of the script component in the Inspector view. Set the Size property in cameras and shortcuts to 3, which in turn specifies main Camera, Camera1, and Camera2, which in turn specify 1, 2, and 3 as the attribute values for element0~3. 2-9 shows this article selected from the Unity game development Tips Collection .

Figure 2-9 specifying values for each property in the Script component

In unity, running this game, when you press the 1, 2, and 3 buttons on the keyboard respectively, the in-game view will take place with the keystrokes corresponding to the switch, 2-10 as shown in this article selected from the Unity game development Tips Collection .

Figure 2-10 the different game views that you see by pressing the corresponding key on the keyboard

Switch between multiple game views to achieve results

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.