mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-18 22:20:07 +00:00
Update document
This commit is contained in:
@@ -25,7 +25,6 @@ YooAssets.SetDefaultAssetsPackage(defaultPackage);
|
||||
private IEnumerator InitializeYooAsset()
|
||||
{
|
||||
var initParameters = new EditorSimulateModeParameters();
|
||||
initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
||||
initParameters.SimulatePatchManifestPath = EditorSimulateModeHelper.SimulateBuild("DefaultPackage");
|
||||
yield return defaultPackage.InitializeAsync(initParameters);
|
||||
}
|
||||
@@ -41,7 +40,6 @@ private IEnumerator InitializeYooAsset()
|
||||
private IEnumerator InitializeYooAsset()
|
||||
{
|
||||
var initParameters = new OfflinePlayModeParameters();
|
||||
initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
||||
yield return defaultPackage.InitializeAsync(initParameters);
|
||||
}
|
||||
````
|
||||
@@ -52,14 +50,6 @@ private IEnumerator InitializeYooAsset()
|
||||
|
||||
注意:该模式需要构建资源包
|
||||
|
||||
- LocationServices : 资源定位的实例类。
|
||||
|
||||
(1) 默认的资源定位服务类(DefaultLocationServices)
|
||||
|
||||
(2) 可寻址的资源定位服务类(AddressLocationServices)
|
||||
|
||||
(3) 开发者自定义的资源定位服务类,需要提供实现ILocationServices接口的实例类。
|
||||
|
||||
- DecryptionServices : 如果资源包在构建的时候有加密,需要提供实现IDecryptionServices接口的实例类。
|
||||
|
||||
- QueryServices:内置资源查询服务接口。
|
||||
|
||||
Reference in New Issue
Block a user