Unity Common 3D Map + character Walk demo

Source: Internet
Author: User

Unity3d

Five panels:

Scenes (scene view) Overview of the entire game view

The game view is the area shown by the main camera that shines through the overall map.

Hierarchy (hierarchical view) the gameobjects used to store the scene view

Project (drawing view) holds game picture material (can introduce untiy's own material library)

Inspector (monitoring view) is used primarily to set the position of object properties rotate colors, scripts, materials, and other components


Hierarchy The main camera below the hierarchy view

Create a terrain below the hierarchy, terrain



Move the main camera position so that the game view can be displayed terrain terrain objects Components

First introduce the technique of moving components , in order to move components in the scene view, first in the Hierarchy hierarchy view, select the component (scene view above a few gadgets)


Small hands-control what the scene displays (scene is big, the screen is so big, you can drag to see what you want to show in the middle)

4 to Arrow-"Adjust the value of x y Z of the component

Swap arrows-"control the rotation angle of the component

The last one--"I don't understand, it should be the component location."


Scene view, there is a coordinate, this can be auxiliary, adjust the coordinates, can be converted to a 2D coordinate system for easy adjustment, if you click on Y can adjust the z-axis and x-axis coordinates, the other same

A small box in the middle that allows other components to be displayed and hidden


After the game view shows the terrain terrain component, look Inspector (monitoring view)


The first one, you can turn the terrain up or down,

The second one, the elevation of the terrain

The third one is to turn the terrain into horizontal

Brush, used to color the terrain, you can add a picture material, which is the texture of the picture

Fourth, picture material, you can add a tree to the scene

Flower (fifth), picture material, can add some details to the scene, such as flowers, grass, trees.



Hierarcy (hierarchical view) right-click to introduce Unity3d's own material library



1, first with the first to adjust the height of the terrain tools, in the terrain components, draw some mountains, select, select the following and brush acquaintance of things, in the scene view of the painting,

Then load the terrain Assets tree Creator glass Material

2. Select the Paintbrush tool, add the material, and draw on the map.

3, Draw the tree, choose the u3d tree material painting

4, add grass, select the u3d to provide the grass material

Post-Add effect


Add Sky Box

In the Hierarcy layer view, add the U3d, Skyboxs, when you are finished adding the material,

In the menu edit, select Render setting, and then watch Inspector (watch view) in Skybox material select the small eyes in the back to add the material of the sky box.


After adding the effect, take the sky.



Add a character, add a character Controllers character control u3d material in Project view, drag a third person character from project to the hierarchy view


Then select 3rd This component, according to the method mentioned above, the character is transferred to the top of the terrain component, cannot be outside, because there is a physical engine support, will not fall down.

Click to view Inspector Monitoring view

Modify several properties, the third person to the main camera to bind to the character, but also to set the character walk, run, stand, jump. The animation

Three persion camera-> Camera transfrom Drag the main camera to the top

Setting related animations in the three Persion controller


When you're done, run u3d and you can see


Press W a s D space to control the character before and after jumping around,

In this way a line of code is not written, to achieve a 3d third view of the simple game. Oh, yes.


Tip: Select a component, in the scene view, press the F key to immediately navigate to the component

Unity Common 3D Map + character Walk demo

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.