UCLASS()
class PROJECT_API UC_ActionStruct : public UUserDefinedStruct
{
GENERATED_BODY()
public:
UC_ActionStruct();
TMap<EPlayerType, FActionStruct> ActionDatas;
public:
void SetupSkilDataAsset(class UDataTable* table);
FActionStruct* GetActionDatas(EPlayerType type) { return ActionDatas.Find(type); }
};
UC_GameInstance::UC_GameInstance()
{
AllActionData = CreateDefaultSubobject<UC_ActionStruct>(FName(“ActionDatas”));
}
The program shuts down when compiling.
But when you turn it back on, it’s compiled.
Why is it popping?
Is UCLASS in UserDefinedStruct not available CLASS?