Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Render to texture with disabled camera allways generates error

$
0
0
When I render to texture with an enabled camera, there are no errors. But I don't want to render to texture every frame, so I disabled the camera and I use Camera.Render(); from an Update(); function just when I need it. But every time I do this, I get this error: GUI Window tries to begin rendering while something else has not finished rendering! Either you have a recursive OnGUI rendering, or previous OnGUI did not clean up properly. If I remove the Camera.Render(); there is no error and if I enable the camera game object so that it renders every frame, there is no error. Does anyone know a solution?

Viewing all articles
Browse latest Browse all 7934


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>