I Want to Setup my input mapping in PlayerController Class for my game. So that when i am playing the game, gameplay mapping is enabled and when i press escape, UI mapping will be used. but can’t set this up because the following function does not inherit from the player controller class, is the something that i am doing wrong or is there a better way to do it. please let me know.
OP is using SetupPlayerInputComponent, which only exists on the pawn. So I’ve let them know that this function is for the pawn.
The PlayerController uses SetupInputComponent, not SetupPlayerInputComponent, so if OP would prefer to set up their input component on the player controller, then they should use that instead.