void OnGUI() { GUILayout.Space(6); selectAss = EditorDrawGUIUtil.DrawPopup("程序集:", selectAss, allAssemblyName, PopupSelectChange); pos = GUILayout.BeginScrollView(pos, "box"); if (control == null) { return; } EditorDrawFileDirectory.DrawFileDirectory(control, ShowFileDirectoryType.ShowAllFile, null, SelectCallBack); GUILayout.EndScrollView(); if (CanShowDetill && GUILayout.Button("查看详情")) { ReflectionClassInfoEditorWindow.AddType((Type)selectItem.otherData["Type"]); FocusWindowIfItsOpen <ReflectionClassInfoEditorWindow>(); } }
private static void OpenWindow() { instance = GetWindow <ReflectionClassInfoEditorWindow>(); }