Unity3d Basic Elements

Source: Internet
Author: User

1. Unity's basic interface consists of 4 panels: Scene Panel, properties panel (Inspector), hierarchy Panel (Hierarchy), and Project panel.

Scene panel: The most commonly used part of the scene, all the models in the scene, lights, cameras, materials, sound effects, etc. are displayed on this panel.

Properties Panel (Inspector): You can display the various properties of the selected game object in the scene, including the name of the object, notes, position coordinates, rotation, scaling, and components, and so on.

Hierarchy Panel (Hierarchy): Displays all objects in the scene, including models, lights, UI interfaces, and so on.

Project Dashboard: Lists resource files such as all resources, scenes, presets, scripts, three-dimensional models, and textures in the game.

2. Unity-related scripts need to inherit the Monobehavior class, and only scripts that inherit the Monobehavior class can be attached to the game object and become components. The script comes with the start () and update () methods.

The Start method is called when the object is created and is called only once, and the Update method is called once for each frame after the next frame of the Start method is executed and executed repeatedly.

Click on the Project panel and select Gameobject->3d object->cube

Executed in the update () method: Transform.   Translate (0.1f, 0, 0); This moves the distance 0.1 meters to the right for each frame.

3. Import the footage locally:

You can import resources by dragging the model (typically FBX files), textures, audio, and other resources from local to the project panel.

The. Unitypackage formatted file is a resource-compressed file of Unity3d. Unlike importing footage files directly, the. unitypackage file also contains dependencies between the footage, such as which map is used for that material and which material is used for the information.

Import packages, Custom package, and then select the. unitypackage file to bring the resources into the project.

4. Hillshade System & Lighting:

(1) Mountain system

Gameobject, 3D Object---terrain creates a terrain.

7 buttons left to right: edit height, edit specific height, set smooth, texture map, Draw tree model, sketch grass model and other settings.

Contains properties that control the size of a mountain.

(2) Lighting

Direction Light: A parallel beam that affects all objects in the scene.

Point Light: A light source that can be used as a lamp.

Area light: regional lights, area lights are only valid for baking.

............

5. Material:

The model is good or bad depending on the shape, material and texture; a model may contain many materials, and one material may correspond to a multi-poster.

By dragging a material file onto a game object, you can set the material to the object, which is equivalent to setting the material property of the mesh renderer component of the object.

6. Presets:

is a reusable game object, and you can create a preset for the game object by dragging the game object from the scene onto the project panel. At the same time, the game object in the scene becomes an instanced object of this preset body.

The instantiated objects of prefab can be dynamically loaded through code, using the instantiate () method in the code. will be used in the future ~

7. In addition to the above, also includes audio, GUI, scenes and other basic elements ...

Unity3d Basic Elements

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.