Well I am following a wiki page on the USTRUCT but I must be blind because I can’t figure out what’s wrong. I included my entire header file for reference. The problem line is commented with the error Visual Studio provides.
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Engine/DataAsset.h"
#include "MeshDatabase.generated.h"
USTRUCT()
struct FMeshInfo
{
GENERATED_USTRUCT_BODY()
UPROPERTY()
int32 testInt; // Error: Expected a ';'
};
UCLASS()
class BALLOONCOLLECTOR_API UMeshDatabase : public UDataAsset
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, Category = "Model List", meta = (ToolTip = "Asset Info")) //Exposes the array as editable on editor
TArray<FItemInfo> MeshList;
public:
UMeshDatabase(UMeshDatabase&);
UMeshDatabase();
};