To spawn a fence correctly, and paint them along there are the correct steps as followed;
- Add spawner to the Hierarchy
- 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.