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