Exemple #1
0
        internal static void Init()
        {
            RuntimeDebuggerWindow w = EditorWindow.GetWindow <RuntimeDebuggerWindow>() as RuntimeDebuggerWindow;

            w.titleContent = new GUIContent("OpenXR Runtime Debugger");
            w.Show();
        }
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            EditorGUILayout.PropertyField(cacheSize);
            EditorGUILayout.PropertyField(perThreadCacheSize);

            if (GUILayout.Button("Open Debugger Window"))
            {
                RuntimeDebuggerWindow window = (RuntimeDebuggerWindow)EditorWindow.GetWindow(typeof(RuntimeDebuggerWindow));
                window.Show();
                window.titleContent = new GUIContent("OpenXR Runtime Debugger");
            }

            serializedObject.ApplyModifiedProperties();
        }