Hi
I’m making a WebGL application that only needs to refresh on input. There is no movement without trigger.
So I thought I don’t need to render every frame, only when I get input. While I found several methods that do work in the editor, using them in WebGl always shows the BG color of the application.
-
Disabling the main camera, ofc. doesn’t work, but I had to try.
-
setting the cullingmask to nothing (for cheap rendering) and clearflags to nothing (so last frame would stay)
-
wait for post render to change those settings, same result.
-
Unfortunately changing the targetFrameRate also changes the Update speed, so if drag (to move the camera) it takes up to a secon to respond properly.
-
works well in the eidtor, but not in webgl. In fact when I use the clearflags.nothing, a simple spinning cube becomes black except for the edges, but doesn’t leave a trail.
Now Unity pauses it’s webgl if the window is inactive, meaning I clicked away from the browser. Isn’t there a way to do exactly that?