Can't Open Enhanced Input Source Files In Blank C++ Project in VS 2022

Hello everybody,

I’m new to Unreal and C++ and I’m having trouble using the enhanced input system with projects based on the blank C++ template (I don’t have any issues if I use the third person template, etc.)

When using a template other than blank C++, I can include the relevant header files as you would expect (e.g #include “EnhancedInputComponent.h”). However, when working with a blank project, I can only access things, like the EnhancedInputComponent, with something like "#include “…/…/…/…/UE_5.1/Engine/Plugins/EnhancedInput/Source/EnhancedInput/Public/EnhancedInputComponent.h”.

Based on the online tutorials and books I have been reading, it seems I should simply be able to include something like “InputActionValue.h” if I want to use an FInputActionValue, but at least for blank projects, I can’t do this. Looking at some of the header files for these classes in the external dependencies folder, I did see the following problem with accessing the .generated files, and I’m not sure if this could be part of the problem:

I have done the following in my project:

  • verified that the Enhanced Input plugin is active

  • verified that under the input section of the project settings the input component has been set to Enhanced Input

  • in my build.cs file, I have included “EnhancedInput” in the PublicDependencyModuleNames

Any help and/or explanation as to what’s going on here would be appreciated!

1 Like

I was having the exact same issue and finally found a solution that worked!

  1. Navigate to your project in file explorer
  2. Delete the following folders: Saved, Intermediate, and Binaries
  3. Right click your uproject file and select “Generate Visual Studio Project Files” (you might have to click “Show more options” before that option is visible)

And that did the trick for me. I hope it works for you!

4 Likes

It worked for me too! That issue was really annoying me, thank you so much!!!

2 Likes

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