摘要:
这里我们创建一个按钮,通过保存按钮的Slot属性到FOverlaySolt中,通过点击该按钮的事件改变按钮的Slot属性,从而改变按钮自身的位置 头文件中定义一个事件和一个FOverlaySlot SSlAiMenuHUDWidget.h #include "Widgets/SOverlay.h" 阅读全文
摘要:
修改主菜单布局,增加菜单标题与左右侧小组件 首先创建菜单栏的中央UI 添加菜单指针到头文件 SSlAiMenuHUDWidget.h #include "CoreMinimal.h" #include "Widgets/SCompoundWidget.h" #include "Widgets/SOv 阅读全文