1 Answer
1

In the edit UV's we have flatten mapping, make sure you check down all the three boxes and click ok. This will adjust your UV's automatically in the texture space.

But from your image, it seems like you are texturing a track or road something like that. If in that case, i suggest you to follow this tutorial. Explains how to texture road/race track using tilable texture.