修复UE5关卡编辑器主界面,工具栏不显示Unlua按钮的问题 #422
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
由于UE5的界面进行了重构,扩展菜单工具项最好是通过ToolMenus
对于LevelEditor的ToolBar,使用原本的Extender方式并不会在主界面增加按钮,粗略估计是LevelEditor的ToolBar去除了原有的扩展接口,固定了按钮的组织。
在源码上找到UE5预留了一个User插槽供开发者自定义,因此这里改为使用ToolMenus对其扩展,此外,部分菜单项缺乏Icon。
