Unity is a popular, conditionally free, cross-platform engine released by Unity Technologies in 2005. The engine is still being developed and is constantly growing with new technologies. Thousands of games and applications have been developed on Unity by both independent developers and well-known studios worldwide. Let's take a closer look at the basics of working with the engine, specifically how to import existing 3D models into Unity.
This instruction is based on the English version of Unity Hub, as the majority of supporting materials for any engine and programming language are in English.
The main format for models supported by Unity is FBX. However, the engine also supports other formats, such as .max, .blend, .mb, etc. For these files, the engine uses a special plug-in module that exports FBX for file import. A 3D modeling program must be installed on the device. We recommend exporting the 3D model in FBX format immediately to avoid any potential issues.
To import models into Unity, you need to:
The settings for 3D models displayed in the "Inspector" window depend on the file. For example, the settings for models created using the SpeedTree technology are fundamentally different from models created in 3D Max and other modeling packages.
Among the common parameters that you will encounter in your work, it is worth highlighting:
For 3D models containing animation files, you should go to the "Rig" tab in the "Inspector" window to check the recommended settings. Then, in the "Animation" folder, select the type of animation. For example, Unity has strict requirements for animation for humanoid models. For them, you need to select the skeleton structure and define the "root node". You can read more about importing models with humanoid animation at "https://unityhub.ru/manual/ConfiguringtheAvatar".
Some models, such as objects based on SpeedTree, may not have settings in the "Rig" and "Animation" tabs.
For exported 3D models with material and texture files, you can specify usage conditions. To do this, go to the "Materials" tab in the "Inspector" window. In the "Material Creation Mode" section, specify the method of importing files that are responsible for the model's materials.
In the "Location" section, select "Use Embedded Materials" to use the embedded materials that come with the model. To apply the settings, click "Apply"; to cancel, click "Revert."
The Unity engine has its own logic for automatically searching for textures for the imported 3D model. First, it looks for a "Textures" folder. If it doesn't exist, Unity scans all textures in the loaded project. During a full scan, conflicts may arise when multiple different texture files have the same name. In this case, it is recommended to rename the files.
3D models created based on high-polygon versions usually have normal maps, which can be selected in the "Inspector" window in the "Materials" tab. The import conditions are 180-degree smoothing angle. This will prevent seams from appearing when applying lighting.
The imported added models are done by dragging the file from the "Project" window to the "Scene" window. If the models have animation files, you can also drag them to the "Animation window," which will be located in the left part of the editor window. In this case, the animation controller will be created automatically and connected to the model.