Unity EditorWindow使用自定义WindowLay

2023-08-29  本文已影响0人  ___________枫林晚

首先需要用到的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("");
上一篇 下一篇

猜你喜欢

热点阅读