Hi
Anyone know why im getting
error C2248: ‘UBlockSet::UBlockSet’ : cannot access private member declared in class ‘UBlockSet’
.H
UCLASS()
class QUARTH2_API UBlockSet : public UUserDefinedStruct
{
GENERATED_BODY()
public:
UBlockSet::UBlockSet(float x, float y, TMap<int32, int32> columns, float maxX, float maxY);
//<Column, RowsInColumn>
UPROPERTY()
TMap<int32, int32> BlockPosition;
UPROPERTY()
float StartLocationX;
UPROPERTY()
float StartLocationY;
UPROPERTY()
float MaxX;
UPROPERTY()
float MaxY;
};
.CPP
UBlockSet::UBlockSet(float x, float y, TMap<int32, int32> columns, float maxX, float maxY){
StartLocationX = x;
StartLocationY = y;
BlockPosition = columns;
MaxX = maxX;
MaxY = maxY;
}
Usage is the following
TMap<int32, int32> BlockPosisitions;
UBlockSet currentSet = UBlockSet((blockSet * 100 + 50), 2000.f, BlockPosisitions, totalColumns * 100 + 50, colxHeight);