- Home /
Rotate Texture2d
I'm saving the screen into a Texture2D with ReadPixels and saving it into a file later, but the problem is that my app is in landscape and I need the photos to be on portrait mode, so basically I need to rotate the texture before saving it, and I was wondering if there is an easier way then making another Texture2d then using setPixel from one to another.
Answer by Screenhog · Aug 14, 2012 at 06:19 PM
Why does it need to be portrait mode? Are you applying the texture to a plane? If so, couldn't you just rotate the plane, making the texture look correct?
no, it`s all GUI, I had a problem that I needed to play external videos in landscape, so I fixed the orientation to landscape and rotated all my GUI content, so the camera took photos in landscape mode and I need to rotate them to display in portrait mode on GUI gallery that I made.
Your answer
Follow this Question
Related Questions
How rotate a gameobject in Y axis using the mouse position at screen? 1 Answer
How do I take maximum screenspace for Gui 1 Answer
Texture2D update every frame - The right method 4 Answers
Fastest rendering of 2D world with lots of changes to screen every frame? 3 Answers
create readable colour map 1 Answer