public void OnGUI() { //GUI must be painted only if there is a VRPNEdit instance and a VRPNEventManager instance if (VRPNEdit.instance != null && VRPNEventManager.instance != null) { createStyles(); if (window == null) { window = GetWindow <VRPNEditorWindow>(); } GUI.BeginGroup(new Rect(0, 0, window.position.width, window.position.height)); paintHeader(); paintBody(); paintFooter(); GUI.EndGroup(); } else { EditorGUILayout.HelpBox("There needs to be one active VRPNEdit script and one active VRPNEventManager script on a GameObject in your scene.\nJust add a VRPNEventManager PREFAB to the scene and you will be ready to go!", MessageType.Error); } }
public static void ShowVRPNRecordingsEditorEditorWindow() { window = GetWindow<VRPNEditorWindow>(); window.titleContent.text = "VRPN Editor"; window.minSize = new Vector2(375,200); }
public void OnGUI() { //GUI must be painted only if there is a VRPNEdit instance and a VRPNEventManager instance if (VRPNEdit.instance != null && VRPNEventManager.instance != null) { createStyles(); if (window == null) { window = GetWindow<VRPNEditorWindow>(); } GUI.BeginGroup(new Rect(0, 0, window.position.width, window.position.height)); paintHeader(); paintBody(); paintFooter(); GUI.EndGroup(); } else { EditorGUILayout.HelpBox("There needs to be one active VRPNEdit script and one active VRPNEventManager script on a GameObject in your scene.\nJust add a VRPNEventManager PREFAB to the scene and you will be ready to go!", MessageType.Error); } }
public static void ShowVRPNRecordingsEditorEditorWindow() { window = GetWindow <VRPNEditorWindow>(); window.titleContent.text = "VRPN Editor"; window.minSize = new Vector2(375, 200); }