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