This is a good answer, but I think in your spawn function you need to add “GetWorld()->” first, ie:
AFloorCell* NewFloorCell = GetWorld()->SpawnActor<AFloorCell>( FloorCellClass, SpawnParams );
This is a good answer, but I think in your spawn function you need to add “GetWorld()->” first, ie:
AFloorCell* NewFloorCell = GetWorld()->SpawnActor<AFloorCell>( FloorCellClass, SpawnParams );