Hello, I am a newbie in C++ and UE4.
So i’m trying to make multidimentional array as class to be used in blueprint
Here i have the MultiArrayRow.h
#pragma once
#include "Object.h"
#include "MultiArrayRow.generated.h"
UCLASS(BlueprintType)
class TESTTURNBASE_API UMultiArrayRow : public UObject
{
GENERATED_BODY()
UPROPERTY(EditAnywhere)
TArray< TSubclassOf<AActor> > Columns;
UFUNCTION(BlueprintCallable, Category = "CustomFunctions")
void AddNewColumn()
{
Columns.Add(NULL);
}
UMultiArrayRow(const FObjectInitializer& ObjectInitializer);
};
and now I’m trying to make the whole class
MultiArray.h
#pragma once
#include "Object.h"
#include "MultiArray.generated.h"
UCLASS(BlueprintType)
class TESTTURNBASE_API UMultiArray : public UObject
{
GENERATED_BODY()
UPROPERTY(EditAnywhere)
TArray< UMultiArrayRow* > Columns; //here UMultiArrayRow is undefined
};
So as you can see the “UMultiArrowRow” is undefined, and when I tried to put #include “UMultiArrowRow.h”, it showed error in UCLASS().
So my question is how to properly use class as a type?