Hey!
I am working on a project that uses modular gameplay components extensively. I wanted to divide related logic into separate components. For example, my BPC_UI_Manager component handles all the UI related logic like opening a pause menu, showing score-card or returning to the gameplay HUD. I am using Enhanced input system to open the menus. For example “P” key to display pause menu or “TAB” key for scorecard. All Input actions are added inside this component.
Everything works fine if I add my UI manager component to my pawn, but no input action gets trigger if I add the component to my Player controller. I want to keep my UI manager component on player controller as I want to access menus even when pawn is dead.
I am adding the component using Game-features action “AddComponent“.
I know I can workaround this in many different ways but I just want to confirm if Enhanced input actions only work inside the Actor components added on a pawn or am I missing something here?
I can see the input mapping context is active for my UI Manager actions, I can verify the inputs are working using console command and debugger. Only the actions Listening in my Component don’t work. I am using Engine Version 5.0 if that helps.