CrimsonUI · Lesson 4 of 9

Give CommonUI Click & Back Actions

Beginner3 minSetupInput

Before you start

  • Completed: Set the Boot Classes
Video coming soon

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

ini
[/Script/CommonInput.CommonInputSettings]
bEnableEnhancedInputSupport=True
EnhancedInputClickAction=/Game/Input/IA_UI_Confirm.IA_UI_Confirm
EnhancedInputBackAction=/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.