I am trying to define this ustruct in C++, following this tutorial.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "MyInputConfig.generated.h"
class UInputAction;
USTRUCT(BlueprintType)
struct FTaggedInputAction
{
GENERATED_BODY()
public:
UPROPERTY(EditDefaultsOnly)
const UInputAction* InputAction = nullptr;
};
But I keep getting the following errors:
Error C4430 : missing type specifier - int assumed. Note: C++ does not support default-int
Error C2146 : syntax error: missing ';' before identifier 'UClass'
Error C2065 : 'Z_Construct_UClass_UInputAction_NoRegister': undeclared identifier
The issue lies whit UInputAction, but I don’t understand why. Any idea what the problem is?