How do I rotate terrain from a script?

Hello! So in my game, I need to be able to rotate terrain pieces based on the player input, but unfortunately terrain is not affected by the normal transform properties. What do I need to add to my script in order to make it actually rotate the terrain?

Pretty sure Unity Terrain does not pay attention to the .rotation or .localScale fields of the Transform component on its GameObject.

I speculate this is done for efficiency but I was not involved in any way.

I just tested it and it doesn’t work as you said. Even when the terrain is not marked as static.
The only solution that I have is to rotate everything arround the terrain

Well the only reason I wanted to rotate terrain specifically was because of grass. I could make slightly worse looking grass that is not a part of terrain and it would work