Guess UV layout was made this way - check UV mapping on that building… if you know how. This will be the best approach.
Another quick solution is to use material with a tripalanar UVs option enabled (triplanar UV is a box projected UVs in realtime; but they have own limitations & imperfections to deal with). You can find one in my free materials package here.