首先需要用到的editorwindow打开,拖拽组合成想要的结构,在Window->Layouts->Save Layout
保存
然后获取保存路径
Debug.Log(UnityEditorInternal.InternalEditorUtility.unityPreferencesFolder
Mac上路径
/Users/xxx/Library/Preferences/Unity/Editor-5.x
将自定义的layout xxx.wlt
复制到工程目录下
读取Layout
EditorUtility.LoadWindowLayout("");