Enhanced Input Binding Failing Build

Hello,

I’m trying to make my player base class and am extending the Base First Person Character with my own input actions.

This is the line that is failing the build:

protected:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category=“Input”)
UInputAction* StaminaAction;

Here is the Error I’m getting:

unresolved external symbol “__declspec(dllimport) class UClass * __cdecl Z_Construct_UClass_UInputAction_NoRegister(void)” (_imp?Z_Construct_UClass_UInputAction_NoRegister@@YAPEAVUClass@@anonymous_user_9674a66c) referenced in function “void __cdecl `dynamic initializer for ‘public: static struct UECodeGen_Private::FObjectPropertyParams const Z_Construct_UClass_AMirrorMainPlayerBase_Statics::NewProp_StaminaAction’'(void)” (??__E?NewProp_StaminaAction@Z_Construct_UClass_AMirrorMainPlayerBase_Statics@@2UFObjectPropertyParams@UECodeGen_Private@@anonymous_user_31e84eb0@@YAXXZ)

If it matters, here are my includes:

image

Hello! I was having the same issue, looks like this was answered here: Enhanced input error in UE 5.1

You need to add “EnhancedInput” to the PrivateDependencyModuleNames in your {ProjectName}.Build.cs file

1 Like