Unity 3D study notes (1)

1.Unity 3D Overview

Introduction to Unity 3D : Unity 3D is a development engine with high usage in the virtual reality industry, developed by Unity Technology. With Unity, developers can create 3D video games, architectural visualizations, real-time 3D animations, and more.

The concept of an engine : An engine provides designers with the tools they need to write programs, rather than developing projects from scratch. This speeds up project development.

2. Unity installation process

Download and installation process : Log in to the official website of Unity , register and log in to your Unity account, and then install according to the regular software installation process. The installed content is Unity Hub.

Note : Unity only supports 64-bit operating systems after 2017, and does not support Window XP operating systems.

Introduction to Unity Hub : Unity Hub is a desktop application used to simplify Unity workflow and provides many functions for Unity use and management. But before using Unity every time, you need to apply for a Unity Personal Edition license, but each activated license is only valid for that day.

Installation of the corresponding version of Unity :

After opening Unity Hub and logging in to your account, click the " Install " button on the left to enter the interface as shown below:

Insert image description here

Click the " Add " button in the above interface and select the Unity version that needs to be installed. Among them, there are relatively stable officially developed versions with (LTS). Under normal circumstances, it is best to install these versions.

Insert image description here

After that, just follow the general software installation process. You can add new modules to the already installed Unity or uninstall it.

3. Unity 3D project management

Concept of Projects and Scenes : Unity 3D The first step in developing a virtual reality project is project creation. The content of the project can be a game, etc. Different levels in the game can correspond to different scenes under the project, and multiple scenes can be saved under one project:

How to create a new project :

Create a new project in Unity Hub. Set the Unity version corresponding to the project, as well as the project name and save path. Click the " Create Project " button to create a new project. (Creating a project requires a period of loading)

Insert image description here

Note : Neither the path name nor the project name of the Unity project can contain Chinese characters, otherwise strange errors will occur.

Opening and saving Unity projects :

After entering the Unity software interface, you can create, open and save projects in the "File" button menu in the upper left corner.

Insert image description here

Contents of the project folder : After creating a project, Unity will automatically create multiple subfolders in the project root directory:

Insert image description here

4. Scenes in Unity 3D

Creation and opening of Unity 3D scenes : You can choose to create a new scene and open a scene under the "File" button menu in the Unity software interface. At the same time, the scene can also be saved and saved as under the same menu.

Add objects to the scene : In the "Hierarchy" menu, right-click the mouse and select: 3D Object → Cube in the right-click menu to add objects to the scene.

Insert image description here

Saving the scene : After modifying the scene, you can save the scene. It is generally saved in the Scenes subfolder of the Assets folder of the project. The suffix name of the saved file is .unity.

Insert image description here

After saving the scene, you can see the saved scene in the project panel below. The folder hierarchy in the project panel corresponds to the folders of the Unity project one-to-one.

Insert image description here

Prefab files : Files with prefab as the suffix are called prefab files and are usually placed in the Assets file. Can be imported directly as resources.

5.Unity 3D interface composition

  • Title bar : The title bar is located at the top of the Unity software interface and contains the project name, the name of the current scene, and the platform on which the project supports release.
  • Menu bar : A series of buttons below the title bar constitute the menu bar.
  • Scene view : The main interface developed by Unity, where content can be viewed and modified.
    • The scene can be rotated through the Alt key and the left mouse button;
    • You can zoom in and out of the scene through the Alt key and the right mouse button.
    • Click the left mouse button to select an object, and use various buttons on the toolbar to perform various operations on the object.
    • There are scene handle tools in the upper right corner of the scene view, which are used to change different perspectives of the scene.
  • Game View : A preview view of project development in Unity 3D. Developers can use the game view to more easily detect game content and discover existing problems. Projects cannot be modified in the game view.
    Insert image description here
  • Project Column : The project column shows the overall structure of the project. You can create C# scripts, scenes, music, animations, etc. in the project bar.
  • Hierarchy view : records all content information in the current scene. New content can be created via the right mouse button menu in the hierarchy view. For objects in the scene, position movement and rotation can be performed.
    Insert image description here
  • Inspector panel : Contains various information about the object selected by the mouse in the current scene, such as its position, size and rotation angle in three-dimensional space.

Guess you like

Origin blog.csdn.net/hanmo22357/article/details/130466018