I'm trying to render stuff to an offscreen buffer in situations where the application is not the focused application.
In Unity, the rendering loop seems to pause when the application loses focus, which prevents me from rendering to an offscreen buffer.
The question is this: Is there any way to have the rendering loop proceed when the application loses focus?
To give more context I'm explaining next what I'm trying to do. I wan't to print some screens generated with Unity. For that sake I'm using an external application spawned from the Unity app which communicates through redirection of its standard input and output. When the external application starts, it opens the native printing dialog, and in that moment the Unity application loses focus.
In a first attempt, I was generating all the images before opening the printing dialog. But it took so much time to generate the images, that I preferred to have the user fiddle with the printing options before the rendering of the images completed. Is this possible to do? Or for some reason Unity cannot render stuff if it is not the focused app?