foreword
If you want to know about AssetBundle and the logic implemented by the resource manager, you can read this article first: 【AssetBundle】Unity AssetBundle packaging and resource loading analysis .
project
Effect: load resources at runtime
Instructions for use
-
The Entrance script is the entrance, and you can change it according to your needs. It only needs to execute those life cycle functions as usual.
-
There are two ways to load resources. If you tick it, you use bundle.
-
The packaging configuration is in Asset/AssetBundleBuilder/Editor/AssetBundleBuildUser.
-
Configuration is written directly into the code. The reason for not using Excel is to reduce specifications and reduce learning costs.
-
Editor entry. Click to execute.