1. Basic knowledge
1. Development team composition
2. Unity features
Graphical interface (what you see is what you get)
Easy entry (support C# (more friendly than OC, C++), js)
Abundant resources at home and abroad (because many people use it)
Good cross-platform (PC, mobile, etc.)
The most complete support for VR/AR
3. Successful cases
Games-Hearthstone Legend, Temple Escape, Legend of Sword and Fairy, Beach Landing Station
VR/AR-most VR works, Pokeman Go, Alipay red envelopes
Two, unity download and installation
Download: unity China official website
Need to download two things, one is the compiler, the other is the project management tool
Installation: install by default
If you want to make a profit for your own game, you must spend money to buy the original version. If you publish it in the personal version, you will be accused
Three, the use of unity
We open UnityHub and click New
Then enter the project name and select the project location, then click Create
Page after opening the project
Interface introduction (refer to the video of bilibili's Qianfeng Up master: https://b23.tv/WUCVRj )
Unity project structure
toolbar
1.File (File)
Scene: The first 6 menus of the scene are all operations on the scene
What is a scene: as shown in the figure below, when we play Monopoly, we will first have a reading interface. This is scene one. After reading the article, we will enter the main menu interface.
The 7th-9th menu is the operation of the whole project, which is easy to understand
Menus 10-11, Build Settings: configuration during packaging (such as specifying the platform it supports), Build And Run: package and run the program
2.Edit
Mainly some editing commands, among which Duplicate is the merging process of ctrl+c and ctrl+v, directly copied without going through the clipboard
Preferences: Setting interface, for example, we can change the theme color of the editor
3.Assets (resources)
4. GameObject (Game Object)
5.Component (component)
6. Window (panel)
7.Help
Interface layout
Modify the layout method to 2 by 3 (personal habits)
Panel bar
1. Project panel (project panel, used to manage all resource files used in the project)
We want to import some pictures, videos, audio resources and drag the files directly into Assets.
2. Scene panel (scene panel, used to edit the scene, list all game objects in the scene)
3. Game panel (game panel, the scene panel seen by the player, captured by the camera in the scene)
4. Hierachy panel (hierarchical panel, used to manage all game objects in the scene, list all game objects in a hierarchical form)
5. Inspector panel (inspector panel, which displays the components on a game object and the properties in the components)
Save the default scene folder as aaa in Hierarchy, and then an aaa file will be generated in assets
Create a new Cube in the scene (right click on the Hierarchy panel to create it)
Then we will see a cube appear
We can see that the three-dimensional coordinate system here is not our right-handed coordinate system in mathematics (but the left-handed coordinate system)
Right-handed coordinate system in mathematics
Operations in the scene
1. Rotate the scene (in the Scene panel, use the right mouse button to drag or alt+left mouse button to drag, a lock in the upper right corner is used to lock the rotation of the scene)
2. Drag the scene (hold down the middle mouse button and drag or click the first "hand button" here and then use the left mouse button to drag)
3. Zoom the scene (roll the mouse wheel)
4. Quickly find the specified game object in the scene (double-click the specified game object in the Hierarchy panel or click the specified game object in the hierarchy panel, drag the mouse and press F on the Scene panel)
5. Move the game object (note to use the cross button in the upper left corner)
- Move in a single direction of x or y or z (red arrow/green arrow/blue arrow on the way when the mouse is pulled)
- Move on a certain plane, such as x position remains unchanged, y and z change (mouse select the red face and drag) other facets are similar
6. Rotate the game object (use the third button as shown in the figure, for example, the red line represents rotation around the x axis)