Assets, Resources and AssetBundles(1)翻译
1.A guide to AssetBundles and Resources
This is a series of articles that provides an in-depth discussion of Assets and resource management in the Unity engine. It seeks to provide expert developers with deep, source-level knowledge of Unity’s Asset and serialization systems. It examines both the technical underpinnings of Unity’s AssetBundle system and the current best practices for employing them.
本系列的文章,提供了对Unity引擎中的Assets 和 resource management 的深入讨论。它试图为专家开发人员提供关于Unity Asset和serialization systems的深入的、源代码级别的知识。它探讨了Unity AssetBundle系统 的技术基础(underpinnings )和目前使用它们的最佳实践。
The guide is broken down into four chapters:
-
1.Assets, Objects and serialization discusses the low-level details of how Unity serializes Assets and handles references between Assets.
It is strongly recommended that readers begin with this chapter as it
defines terminology used throughout the guide. -
2.The Resources folder discusses the built-in Resources API.
-
3.AssetBundle fundamentals builds on the information in chapter 1 to describe how AssetBundles operate, and discusses both the loading of
AssetBundles and the loading of Assets from AssetBundles. -
4.AssetBundle usage patterns is a long article discussing many of the topics surrounding the practical uses of AssetBundles. It includes
sections on assigning Assets to AssetBundles and on managing loaded
Assets, and describes many common pitfalls encountered by developers
using AssetBundles.
本指南分为四章:
-
1.Assets, Objects and serialization讨论了Unity如何序列化Assets和处理Assets之间的引用的底层细节。强烈建议读者从本章开始,因为它定义了指南中使用的术语。
-
2.The Resources folder讨论内置的Resources API。
-
3.AssetBundle fundamentals以第一章的信息为基础,描述了AssetBundles 是如何运作的,并讨论了AssetBundles 的加载以及从AssetBundles 中加载Assets。
-
4.AssetBundle usage patterns是一篇很长的文章,讨论了围绕着AssetBundle 的实际使用的许多主题。它包括将Assets指定给AssetBundle 和管理已加载的Assets,并描述了开发人员使用AssetBundle时遇到的许多常见陷阱(pitfalls )。
Note: This guide’s terms for Objects and Assets differ from Unity’s public API naming conventions.
The data this guide calls Objects are called Assets in many public Unity
APIs, such as AssetBundle.LoadAsset and Resources.UnloadUnusedAssets.
The files this guide calls Assets are rarely exposed to any public APIs.
When they are exposed, it is generally only in build-related code, such
as AssetDatabase and BuildPipeline. In these cases, they are called
files in public APIs.
注意:本指南中的术语Objects 和Assets不同于Unity公共API命名约定。
本指南称作Objects的,在许多 Unity 公共 APIs 中被称为Assets,比如AssetBundle.LoadAsset 和
Resources.UnloadUnusedAssets。本指南中称为Assets的files很少公开给任何公共APIs。当它们被公开时,通常只在与构建相关的代码中,比如AssetDatabase和BuildPipeline。在这些情况下,它们被称为公共APIs中的文件。