1
NGUI 3 Support / Re: Best Way To Do Page Turning Mechanic
« on: July 22, 2015, 10:19:29 PM »
I hit a snag. I created the "staging area" offscreen and setup my page with several UI elements.
I figured I could take a screen grab on a staging area camera and get all the UI elements baked into a single texture which I could apply to the bottom page mesh. Idea being, when the top page mesh peeled away, the underlying page mesh would be revealed.
Problem is, after creating a duplicate UI root and camera, whatever is in the camera view shows up in the game viewport regardless if it is far away from the other cameras in the world.
I'm still a newb. Does anyone know how to do what I am trying to do?
Essentially, I want the camera to render to its own viewport that does not get added to the game viewport and allows me to take a screen cap of using readPixels()
I figured I could take a screen grab on a staging area camera and get all the UI elements baked into a single texture which I could apply to the bottom page mesh. Idea being, when the top page mesh peeled away, the underlying page mesh would be revealed.
Problem is, after creating a duplicate UI root and camera, whatever is in the camera view shows up in the game viewport regardless if it is far away from the other cameras in the world.
I'm still a newb. Does anyone know how to do what I am trying to do?
Essentially, I want the camera to render to its own viewport that does not get added to the game viewport and allows me to take a screen cap of using readPixels()

