Unity AssetBundle resource hot update plugin
CatAssetManager
Run Mode - Package Only
- Uncheck IsEditorMode: Use AssetBundle to load in-game resources
- Activate IsEditorMode Check: Use AssetDatabase.LoadAssetAtPath to load only Editor
Reminder: IsEditorMode is restricted by macros. If you are not in UNITY_EDITOR mode (when you were on a real device), IsEditorMode is forced to False to prevent users from forgetting to close it after packaging
Create a new AssetBundle
Select folder - add as resource bundle build directory - refresh resource bundle build information
Change the Group classification of AssetBundle
[Frameworks] - [CatAsset] - [Open resource package build window]
[Build Directory] - [Select the newly created directory] - [Select Resource Group]
Change the packaging method of AssetBundle to build the rule encryption method
Output AssetBundle
This is basically typed out
for use: Select PackageOnly mode to close IsEditorMode
Run Mode - Updateable
Today we focus on how to use this
Check out our hotfix Bundle output directory
Every time we package, we will copy a copy of the latest current platform from the Assetbundle to the WebServer directory under the root directory, and we will upload it to the server later.
WebServer directory
upload to server
Select hot update mode - Updatable
Fill in the server path
related documents
Finally, thanks to @猫星人for the technical support and help
http://cathole.top/2022/08/30/catasset-guide/
https://github.com/CatImmortal