If the Enum is inside of a plugin, it should be TEXT("/Script/YourPluginName")
, if it is inside the main project, TEXT("/Script/YourProjectName")
Full line:
FTopLevelAssetPath InputEnumPath = TopLevelAssetPath(TEXT("/Script/YourProjectName"), TEXT("ESAMPLEAbilityInputID"));
Then:
const FGameplayAbilityInputBinds Binds("Confirm", "Cancel", InputEnumPath, ConfirmInputID, CancelInputID);
If the path or the enum name is wrong, you will get a crash.