Unity 2D Game Development Tutorial to add multiple ground to a game scene

Source: Internet
Author: User

Unity 2D Game Development Tutorial to add multiple ground to a game sceneadd multiple ground to a game scene

Obviously, only one ground of the game scene is too small, there is not enough elves to move around. So, this section introduces a simple way to add multiple floors to a game scene. The specific methods of operation are:

( 1 ) in project View, create a new folder named prefabs hierarchy platform object, drag to prefabs folder, As a result, you can generate a provisioned resource with the same name, 2-11

Figure 2-11 by dragging an object to the Project view, create a new preset resource

( 2 ) drag project view prefabs folder platform resources to scene or hierarchy 2-12

Figure 2-12 add multiple ground objects to the game scene while modifying Death Trigger the location of the object

( 3 4 ground object, in order for hierarchy The view looks clearer and more concise, and you can create a new empty platform Container empty child object of the object, 2-13

Figure 2-13 to make Hierarchy The view is more concise, creating a new empty object, making it the parent of other objects

This article is selected from: Unity 2D Game Development QuickStart University PA Internal information, reproduced please indicate the source, respect the technology respect the IT person!


Unity 2D Game Development Tutorial to add multiple ground to a game scene

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.