CrimsonUI · Lesson 4 of 9
Give CommonUI Click & Back Actions
Before you start
- Completed: Set the Boot Classes
Chapters
Why CommonUI needs these
CommonUI drives every widget's universal confirm (click) and cancel (back) from two shared input actions. Create two plain Enhanced Input assets — IA_UI_Confirm and IA_UI_Back (Digital/bool) — then point CommonUI at them.
Wire them in DefaultGame.ini
[/Script/CommonInput.CommonInputSettings]bEnableEnhancedInputSupport=TrueEnhancedInputClickAction=/Game/Input/IA_UI_Confirm.IA_UI_ConfirmEnhancedInputBackAction=/Game/Input/IA_UI_Back.IA_UI_Back
Legacy path
Projects not using Enhanced Input for UI instead set
DefaultClickAction/DefaultBackAction with a CommonUIInputData DataTable — the Enhanced Input route above is the 5.8-era default and what the rest of this course assumes.