How to capture screen, render to background, and allow both portrait and landscape on mobile device?
I am making a paint program for iOS. I have discovered a great way to make a paint program: by painting with particles of a particle system, and then every so often capturing the image using a render texture and copying the image to a 2D texture and using this in a material that covers a canvas image in the background. Every few frames, the image 'bakes' into the background, the particles are cleared and the process begins over.
This works great, however I have a problem which has been plaguing me for months now. How can I rotate the phone from landscape to portrait, so that the background rotates as well and so that this capture-and-bake-into-background continues to function?
If I get your message correctly then can't we do like :
Screen.orientation = ScreenOrientation.LandscapeLeft;
???
first of all you make paint game with Particle system ?? Wow.. I was only aware about trail or line renderer .. Now I have added more in my list ... Thanks
Your answer
Follow this Question
Related Questions
RenderTexture to Texture2D very slowly 0 Answers
How to convert from RenderTexture to Texture2D to EncodeToPNG? 0 Answers
RenderTexture to Texture2D 0 Answers
Read RenderTexture pixels 0 Answers
Trying to Take a Snapshot of Only a Portion of the Screen In-Game 0 Answers