mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 11:38:47 +00:00
Update editor simulate mode parameters
更新编辑器下模拟模式的初始化参数类
This commit is contained in:
@@ -66,6 +66,11 @@ namespace YooAsset
|
||||
/// </summary>
|
||||
public class EditorSimulateModeParameters : CreateParameters
|
||||
{
|
||||
/// <summary>
|
||||
/// 用于模拟运行的资源清单路径
|
||||
/// 注意:如果路径为空,会自动重新构建补丁清单。
|
||||
/// </summary>
|
||||
public string SimulatePatchManifestPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -187,7 +192,10 @@ namespace YooAsset
|
||||
_editorSimulateModeImpl = new EditorSimulateModeImpl();
|
||||
_bundleServices = _editorSimulateModeImpl;
|
||||
AssetSystem.Initialize(true, parameters.AssetLoadingMaxNumber, parameters.DecryptionServices, _bundleServices);
|
||||
initializeOperation = _editorSimulateModeImpl.InitializeAsync(parameters.LocationToLower);
|
||||
var editorSimulateModeParameters = parameters as EditorSimulateModeParameters;
|
||||
initializeOperation = _editorSimulateModeImpl.InitializeAsync(
|
||||
editorSimulateModeParameters.LocationToLower,
|
||||
editorSimulateModeParameters.SimulatePatchManifestPath);
|
||||
}
|
||||
else if (_playMode == EPlayMode.OfflinePlayMode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user