Small problem that I'm sure there is an easy fix for. I have a lot of objects that have been created by a script but they all have random rotations in their local z-axis. There is nothing to fix this in the script that I can see so hoping someone can tell me how to sort this out.
Here is a screenshot of my scene.

As you can see there are a bunch of "houses" and I want all of these to be facing upright properly.
This is just a small portion of a much larger scene so that's why I can't just sort this out manually.
Anyone got any ideas? Any scripts I should use?
THanks in advance!