mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update ResourceModule.cs
This commit is contained in:
@@ -75,6 +75,11 @@ namespace TEngine
|
||||
private bool m_PreorderUnloadUnusedAssets = false;
|
||||
private bool m_PerformGCCollect = false;
|
||||
private float m_LastUnloadUnusedAssetsOperationElapseSeconds = 0f;
|
||||
|
||||
/// <summary>
|
||||
/// 全局取消操作Token。
|
||||
/// </summary>
|
||||
public CancellationToken DefaultToken { private set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置同时最大下载数目。
|
||||
@@ -150,6 +155,8 @@ namespace TEngine
|
||||
return;
|
||||
}
|
||||
|
||||
DefaultToken = gameObject.GetCancellationTokenOnDestroy();
|
||||
|
||||
if (playMode == EPlayMode.EditorSimulateMode)
|
||||
{
|
||||
Log.Info("During this run, TEngine will use editor resource files, which you should validate first.");
|
||||
|
Reference in New Issue
Block a user