From fbec6e9a58e1aaeffb0a2a3ab2967593815e96d6 Mon Sep 17 00:00:00 2001 From: Yoshifumi Kawai Date: Sun, 19 Apr 2020 03:38:30 +0900 Subject: [PATCH] check playerloop --- Assets/Scenes/SandboxMain.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Assets/Scenes/SandboxMain.cs b/Assets/Scenes/SandboxMain.cs index 528040e..6417aa3 100644 --- a/Assets/Scenes/SandboxMain.cs +++ b/Assets/Scenes/SandboxMain.cs @@ -2,6 +2,7 @@ using System.Collections; using System.Collections.Generic; using System.IO; +using System.Text; using System.Threading; using System.Threading.Tasks; 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()); + } +} \ No newline at end of file