Reorienting all UVs in a tileset to the same direction

I’m working on a game map that is structured like a tileset purely made of quads, all with the same 1x1 size. Each quad has repeating UVs from a single texture atlas, in many cases hundreds of them.

The problem is that I’m wasting a lot of time rotating UVs, since sometimes I’ll duplicate and mirror walls and floors, in order to make a room. This tends to invert the direction of the UVs.

My question:

Is there a way to reorient all UVs of a selection of quads? Like for example, taking all walls and updating the UV so they have the same orientation as if Projected from View. Like this:

I would like to update either the UV or the individual quad rotation so they are all the same.

Well.. just copying some walls and rotating them to the wanted Z direction (NESW) will not rotate the direction along X or Y.. so you may use soem uv tools (like UV-Toolkit or MAgic UV or DreamUV or Texture Tools to use some gridify and or orient island function).. or use some edited tetxure to “find” the wrongly rotate faces, select them and rotate them all at once… :person_shrugging: