The assets workflow in Unity
Unity's assets workflow is another very interesting topic that is also very closely related to serialization. So, what is an asset
in Unity? If you look at a Unity project, you will find that there is a folder called Assets
in the root directory of this project, and an asset is a file stored in this folder.
In Unity development, assets can be divided into the following two categories according to their sources:
- External assets that are imported into Unity; the most common in this case are
models,
textures,
andaudio
. They are often created by third-party tools, such asMaya,
3Ds Max,
andPhotoshop
, and then imported into Unity for use. - Assets created by Unity itself, such as
Prefab
andScene
files.
Whether it's an imported asset or an asset created by Unity, Unity does the following three things with them:
- Unity will assign a GUID to this asset.
- Then, a meta file will be created automatically by Unity to store...