Could you please explain more about “MotherObject” and its initialization. I’ve tried as below
StaticRootcomp = CreateDefaultSubobject(TEXT("Mesh0"));
UObject* staticmesh = StaticRootcomp;
FActorSpawnParameters MyParams;
MyParams.Owner = staticmesh;
But, getting an ERROR as Cannot be assigned to an entity of type “AActor*”. As a beginner, I couldn’t understand properly. Please help me or any tutorials will be great.