Created
April 17, 2018 14:30
-
-
Save tsubaki/fe1ae34397dcfff2432a923aa108c7a5 to your computer and use it in GitHub Desktop.
PlayerLoopの一覧表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.Experimental.LowLevel; | |
public class ShowPlayerLoop | |
{ | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
static void Init() | |
{ | |
var playerLoop = PlayerLoop.GetDefaultPlayerLoop(); | |
foreach(var header in playerLoop.subSystemList) | |
{ | |
Debug.LogFormat("------{0}------", header.type.Name); | |
foreach( var subSystem in header.subSystemList) | |
{ | |
Debug.LogFormat("{0}.{1}", header.type.Name ,subSystem.type.Name); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment