Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hidden Unity WebGL App: "Screen position out of view frustum"

I'm using a Unity WebGL App in a Bootstrap modal (dialogbox) of a website. As long as this modal isn't visible (display:none), there is always this error in the console log: "Screen position out of view frustum". How can I handle or avoid this error?

like image 255
Patrick Münster Avatar asked Jan 02 '26 00:01

Patrick Münster


1 Answers

Ok, I've got a dirty solution for this issue in my case. I've written a function in Unity to disable my main camera. So every time I'm hiding the container with the Unity WebGL (modal or dialogbox, etc.), I'm going to call this function do disable the main camera from JavaScript and the error disappears. By showing the container (modal or dialogbox, etc.) I'm simply enabling the camera again. Not an elegant solution but works for me. But I would appreciate a better solution.

like image 67
Patrick Münster Avatar answered Jan 06 '26 10:01

Patrick Münster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!