Esempio n. 1
0
        private static bool SetWindow(string windowTitle)
        {
            UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(GUIView));
            GUIView x = null;

            UnityEngine.Object[] array2 = array;
            for (int i = 0; i < array2.Length; i++)
            {
                GUIView gUIView = (GUIView)array2[i];
                if (gUIView is HostView)
                {
                    if (EditorGUIUtility.TextContent((gUIView as HostView).actualView.title).text == windowTitle)
                    {
                        x = gUIView;
                        break;
                    }
                }
                else
                {
                    if (gUIView.window && gUIView.GetType().Name == windowTitle)
                    {
                        x = gUIView;
                        break;
                    }
                }
            }
            Highlighter.s_View = x;
            return(x != null);
        }
Esempio n. 2
0
        private static string GetViewName(GUIView view)
        {
            EditorWindow editorWindow = GetEditorWindow(view);

            if (editorWindow != null)
            {
                return(editorWindow.titleContent.text);
            }
            return(view.GetType().Name);
        }
        private static string GetViewName(GUIView view)
        {
            EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);

            if ((UnityEngine.Object)editorWindow != (UnityEngine.Object)null)
            {
                return(editorWindow.titleContent.text);
            }
            return(view.GetType().Name);
        }
        private static string GetViewName(GUIView view)
        {
            EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);
            string       result;

            if (editorWindow != null)
            {
                result = editorWindow.titleContent.text;
            }
            else
            {
                result = view.GetType().Name;
            }
            return(result);
        }
 private static string GetViewName(GUIView view)
 {
   EditorWindow editorWindow = GUIViewDebuggerWindow.GetEditorWindow(view);
   if ((UnityEngine.Object) editorWindow != (UnityEngine.Object) null)
     return editorWindow.titleContent.text;
   return view.GetType().Name;
 }
 private static string GetViewName(GUIView view)
 {
     EditorWindow editorWindow = GetEditorWindow(view);
     if (editorWindow != null)
     {
         return editorWindow.titleContent.text;
     }
     return view.GetType().Name;
 }