EnhancedInput not working with Playercontroller

Hi everyone,

I am facing the problem that my Character in game does not move.
Here is how everything is set up:

  1. Created a GameMode where I use custom classes for different actions

  2. Assign action mapping and context to Input in Playercontroller:

  3. IA_CONTEXT looks like this:

  4. in the C++ class for the playercontroller the Context is added to the subsystem:

  5. In SetupInputComponent the Move action is bound to the function:

  6. The Move function looks like this:

Interestingly the Cursor trace, which is call in Tick, is working just fine:
image

This function just highlights others Actors below the mouse cursor:
image

Does someone have an idea, why the move function is not called? I tried to debug it, but the move function is not even called

Update on this topic:
it seems that the error is occurring due to a bug in UE 5.4

I cannot verify that 100% but here is what I tried and how I could solve the problem for now:
The current solution was created with those two options disabled:

image

The solution was then built with Visual Studio 2022 Community edition.

I then enabled the two options again as shown in the screenshots , rebuilt the solution and started live coding and voila: everything worked as expected.
I later disabled the two options again and again had some strange behavior which disappeared after enabling those two options again and starting live coding. Since then I kept those two options enabled and now for each change have to use live coding.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.