When I try to place a building, it previews and places the building in a way that the half of the cube will be placed below the floor. (At 0.5 Y coordinate, where height of the building is 1.)
I have solved that issue by adding half height of the building to the hit.point by using the following line:
Vector3 positionToPreview = hit.point + hit.normal * (building.transform.lossyScale.y / 2);
Does anyone have an idea how could I fix that issue using the Unity interface?