mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-16 04:30:12 +00:00
Update document
This commit is contained in:
@@ -46,7 +46,6 @@ private IEnumerator InitializeYooAsset()
|
||||
- LocationRoot : 资源定位的根路径,所有通过代码加载的资源文件都需要放在资源定位的根路径下。
|
||||
- DecryptionServices : 如果资源包在构建的时候有加密,需要提供实现IDecryptionServices接口的实例类。
|
||||
- ClearCacheWhenDirty : 安装包在覆盖安装的时候,是否清空沙盒缓存文件夹。
|
||||
- IgnoreResourceVersion : 是否忽略资源版本号,请参考进阶教程。
|
||||
- DefaultHostServer : 默认的资源服务器IP地址。
|
||||
- FallbackHostServer : 备用的资源服务器IP地址。
|
||||
|
||||
@@ -57,7 +56,6 @@ private IEnumerator InitializeYooAsset()
|
||||
createParameters.LocationRoot = "Assets/GameRes";
|
||||
createParameters.DecryptionServices = null;
|
||||
createParameters.ClearCacheWhenDirty = false;
|
||||
createParameters.IgnoreResourceVersion = false;
|
||||
createParameters.DefaultHostServer = "http://127.0.0.1/CDN1/Android";
|
||||
createParameters.FallbackHostServer = "http://127.0.0.1/CDN2/Android";
|
||||
yield return YooAssets.InitializeAsync(createParameters);
|
||||
|
||||
Reference in New Issue
Block a user