Is there a way to render the GUI layer to a render texture?
I find UnityGUI useful when it comes to text rendering, and basically I would like to “bake” some rendered texts into a render texture, so that I can use them in a 3D world. I don’t want to use TextMesh for this as I would like my text to be wrapped on 3D geometry.
I have been trying to render OnGUI code onto a render texture, but it doesn’t seem to be possible. I tried to create a separate camera, set a render texture as its target, set up the culling masks and add a GUI layer component to it, but I couldn’t successfully have the OnGUI code render to texture instead of screen.
Has anyone tried that before? Any hints appreciated…