To spawn a fence correctly, and paint them along there are the correct steps as followed;

  1. Add spawner to the Hierarchy
  2. Add the object/fence/building to the Spawner



Then Please Follow These Settings; 





Please see the attachments for the rest of the settings. Then if you are spawning a fence please change the rotation type to last spawn closest.