I have a class definition as such:
UCLASS()
class HORROR1_API UMyComplexObjectTest : public UObject
{
GENERATED_BODY()
public:
UMyComplexObjectTest();
UMyComplexObjectTest(int32 x, int32 y);
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MyComplexTest")
int32 row = 3;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MyComplexTest")
int32 col = 3;
void setRow(int val);
};
And I am trying to create an instance of it in another class via :
UMyComplexObjectTest test1 = UMyComplexObjectTest();
This results in me getting the error :
Error C2248 'UMyComplexObjectTest::UMyComplexObjectTest': cannot access private member declared in class 'UMyComplexObjectTest' Horror1 C:\Users\dogan\Documents\Unreal Projects\Horror1\Source\Horror1\Private\MazeGeneratorC.cpp 41
I am wondering if anyone can help me identify, why my constructor is still private under this circumstances. Thanks in advance!