Unity learning-- game resource import

1. Right click on the Assets resource option of the project, and then select show in explorer (displayed in the resource manager (actually our file manager))

The course learning inside is the project file we created in unity, click on the project file and then click on the resource (affects) file, the content in this file is our game resources, including graphics, shadows, materials, audio, etc.

 There is a one-to-one correspondence between the Assets file in the resource manager (file manager) and the Assets file in the project box. If we modify the Assets file in the file manager, the corresponding Assets file in the project box will also appear. modification, and vice versa

If there are external game resources to be imported, we can either import them into the Assets file of the resource manager, or directly import them into the Assets file of the project

We can also drag and drop files directly from the resource manager to the corresponding file of the project

2. Drag the resource file in the project (note that for the model, the .fbx file should be dragged and dropped, this is the final model) into the hierarchy box, and we can display the resource in the Scene (scene)

3. Unity supports us to manually package resources. The packaging method is to first select a resource file and then press and hold crtl to select another resource. If there is more to continue, press the left button to select the export package after selection

Both imports mean to import, and export means to export, where cuntom means to customize

After clicking Export Package, confirm, and then select the export location to export the package file

4. While opening the unity project, click the package file and it will appear

 The following option allows us to select the content of the package to be imported. After selecting Import, the selected content in the package will be automatically imported into the Assets file.

5. How is a model displayed in the scene?

First of all, a model file not only contains the information of the triangular faces that make up the model, but also contains the rendering information of the model

 This box contains the information of the model. The ball inside is called a shader. This shader determines what kind of material our model is displayed in.

The shader of the default model cannot be changed, but we can create a shader to replace the default shader

(The shader is a part of the game resources and should be placed in the Assets folder.) The creation method is to left-click create under the Assets file, and then select the mattial material, and we can create a shader file. After adjusting the parameters, directly Drag this file to the corresponding model in the hirarchy box, and we can give it a material

This option is used to adjust the type of shader 

6.

Click on a model, this option in the inspector (inspection tool) can select the grid style of our current object (click on the dot in the middle of the circle to select, the other is the same)

Then click materials to expand it 

 We can also select the shader of the current object (the method of clicking and selecting is the same) (element -- element)

 We can also click the + sign here to add material to the object, and the minus sign means to reduce

In most cases, one model corresponds to one material.

7. So now comes the question? Where can we find game resources? You can't do it one by one by yourself.

The solution is Unity's built-in resource store! --- Click window, click assect store to go to the resource store

8. The resources we downloaded will be automatically stored in the package manager. In the window window, if we want to call the resources we downloaded in a new project, we only need to go to the package manager Just re-import this package into the project

 

 

 

Guess you like

Origin blog.csdn.net/qq_51947882/article/details/126329252
Recommended