mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-21 23:30:12 +00:00
check playerloop
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using UniRx.Async;
|
using UniRx.Async;
|
||||||
@@ -122,3 +123,26 @@ public class SandboxMain : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class ShowPlayerLoop
|
||||||
|
{
|
||||||
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||||
|
static void Init()
|
||||||
|
{
|
||||||
|
var playerLoop = UnityEngine.LowLevel.PlayerLoop.GetDefaultPlayerLoop();
|
||||||
|
|
||||||
|
var sb = new StringBuilder();
|
||||||
|
sb.AppendLine("Default Playerloop List");
|
||||||
|
foreach (var header in playerLoop.subSystemList)
|
||||||
|
{
|
||||||
|
sb.AppendFormat("------{0}------", header.type.Name);
|
||||||
|
sb.AppendLine();
|
||||||
|
foreach (var subSystem in header.subSystemList)
|
||||||
|
{
|
||||||
|
sb.AppendFormat("{0}.{1}", header.type.Name, subSystem.type.Name);
|
||||||
|
sb.AppendLine();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
UnityEngine.Debug.Log(sb.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user