Exemple #1
0
        public override void OnInspectorGUI()
        {
            GUILayout.BeginHorizontal();
            EditorGUILayout.HelpBox("Coroutiner, Execution and destruction of unified scheduling Coroutine!", MessageType.Info);
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Coroutiner Tracker", "LargeButton"))
            {
                CoroutinerTrackerWindow tracker = EditorWindow.GetWindow <CoroutinerTrackerWindow>();
                tracker.titleContent.text = "Coroutiner Tracker";
                tracker.Init(_target);
                tracker.position = new Rect(200, 200, 1020, 800);
                tracker.Show();
            }
            GUILayout.EndHorizontal();
        }
        protected override void OnInspectorDefaultGUI()
        {
            base.OnInspectorDefaultGUI();

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Coroutiner Tracker", EditorGlobalTools.Styles.LargeButton))
            {
                CoroutinerTrackerWindow tracker = EditorWindow.GetWindow <CoroutinerTrackerWindow>();
                tracker.titleContent.image = EditorGUIUtility.IconContent("NavMeshAgent Icon").image;
                tracker.titleContent.text  = "Coroutiner Tracker";
                tracker.Init(Target);
                tracker.minSize = new Vector2(400, 400);
                tracker.maxSize = new Vector2(Screen.currentResolution.width, Screen.currentResolution.height);
                tracker.Show();
            }
            GUILayout.EndHorizontal();
        }
        protected override void OnInspectorDefaultGUI()
        {
            base.OnInspectorDefaultGUI();

            GUILayout.BeginHorizontal();
            EditorGUILayout.HelpBox("Coroutiner, Execution and destruction of unified scheduling Coroutine!", MessageType.Info);
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Coroutiner Tracker", "LargeButton"))
            {
                CoroutinerTrackerWindow tracker = EditorWindow.GetWindow <CoroutinerTrackerWindow>();
                tracker.titleContent.text = "Coroutiner Tracker";
                tracker.Init(Target);
                tracker.minSize = new Vector2(400, 400);
                tracker.maxSize = new Vector2(Screen.currentResolution.width, Screen.currentResolution.height);
                tracker.Show();
            }
            GUILayout.EndHorizontal();
        }