Switch between multiple game views to achieve results

Source: Internet
Author: User

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

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.