EnhancedInput - Headers going missing

I’m following a course, and after being able to compile this exact project a week or two ago, I no longer can despite making zero changes. Why? Because the compiler cannot find the files for certain includes.


Why is it that despite having the correct #include for UEnhancedInputLocalPlayerSubsystem that the compiler STILL won’t recognize it?

Not that this is very helpful, but I’m having a similar problem.

At least in my case, if I base my project off a template other than blank, the header files can be found just fine, so based on whatever type of project you’re working on (eg. third person), you could give that a try.

Also, let’s say for example you’re trying to declare a variable of type UEnhancedInputComponent* and you get a red squiggly, hover the cursor over it and see if you get a prompt for Ctr + Alt to see potential fixes. This sometimes works for me, but the include ends up looking something like:

If you figure out a better solution, let me know!

Notice that UEnhancedInputLocalPlayerSubsystem requires a specific module called “EnhancedInput”.

module

You need to add “EnhancedInput” to your build file

Either in the public or private dependencies.

Depending on which version you choose you will have different access to files & properties.

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput" });

Yeah I added that (even though I was pretty sure I already had it before) but maybe overwrote it.

I’m getting a different problem now: Unresolved External Symbols?

If the error regarding enhanced input is gone, please mark this thread as resolved.

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