Update document
parent
556b23b488
commit
1adc3d7ed6
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
````C#
|
````C#
|
||||||
// 资源系统初始化方法,根据不同的模式,我们传递不同的创建参数类
|
// 资源系统初始化方法,根据不同的模式,我们传递不同的创建参数类
|
||||||
YooAssets.InitializeAsync(CreateParameters parameters);
|
YooAssets.InitializeAsync(InitializeParameters parameters);
|
||||||
````
|
````
|
||||||
|
|
||||||
**编辑器模拟模式**
|
**编辑器模拟模式**
|
||||||
|
@ -16,9 +16,9 @@ YooAssets.InitializeAsync(CreateParameters parameters);
|
||||||
````c#
|
````c#
|
||||||
private IEnumerator InitializeYooAsset()
|
private IEnumerator InitializeYooAsset()
|
||||||
{
|
{
|
||||||
var createParameters = new YooAssets.EditorSimulateModeParameters();
|
var initParameters = new YooAssets.EditorSimulateModeParameters();
|
||||||
createParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
||||||
yield return YooAssets.InitializeAsync(createParameters);
|
yield return YooAssets.InitializeAsync(initParameters);
|
||||||
}
|
}
|
||||||
````
|
````
|
||||||
|
|
||||||
|
@ -31,9 +31,9 @@ private IEnumerator InitializeYooAsset()
|
||||||
````c#
|
````c#
|
||||||
private IEnumerator InitializeYooAsset()
|
private IEnumerator InitializeYooAsset()
|
||||||
{
|
{
|
||||||
var createParameters = new YooAssets.OfflinePlayModeParameters();
|
var initParameters = new YooAssets.OfflinePlayModeParameters();
|
||||||
createParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
||||||
yield return YooAssets.InitializeAsync(createParameters);
|
yield return YooAssets.InitializeAsync(initParameters);
|
||||||
}
|
}
|
||||||
````
|
````
|
||||||
|
|
||||||
|
@ -64,14 +64,14 @@ private IEnumerator InitializeYooAsset()
|
||||||
````c#
|
````c#
|
||||||
private IEnumerator InitializeYooAsset()
|
private IEnumerator InitializeYooAsset()
|
||||||
{
|
{
|
||||||
var createParameters = new YooAssets.HostPlayModeParameters();
|
var initParameters = new YooAssets.HostPlayModeParameters();
|
||||||
createParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
initParameters.LocationServices = new DefaultLocationServices("Assets/GameRes");
|
||||||
createParameters.DecryptionServices = null;
|
initParameters.DecryptionServices = null;
|
||||||
createParameters.ClearCacheWhenDirty = false;
|
initParameters.ClearCacheWhenDirty = false;
|
||||||
createParameters.DefaultHostServer = "http://127.0.0.1/CDN1/Android";
|
initParameters.DefaultHostServer = "http://127.0.0.1/CDN1/Android";
|
||||||
createParameters.FallbackHostServer = "http://127.0.0.1/CDN2/Android";
|
initParameters.FallbackHostServer = "http://127.0.0.1/CDN2/Android";
|
||||||
createParameters.VerifyLevel = EVerifyLevel.High;
|
initParameters.VerifyLevel = EVerifyLevel.High;
|
||||||
yield return YooAssets.InitializeAsync(createParameters);
|
yield return YooAssets.InitializeAsync(initParameters);
|
||||||
}
|
}
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue