I am currently trying to exclude the inspector from the production build in typescript (+webpack), however without importing the inspector occlusion queries don’t seem to work anymore. Adding
import(’@babylonjs/inspector’);
updates the isOccluded property of meshes. Without it, the value is always false.
I am probably missing an import for occlusion queries to work. Did anyone have the same issue?
yes I am importing engine.occlusionQuery already. I would provide a sandbox which reproduces the issue, however I believe it’s not possible to exclude the inspector in the sandbox?
With the minimal version I am currently unable to reproduce this issue. This is really strange because in our project the only fix (I am aware of) is the above mentioned import statement. I will continue digging deeper and present my, hopefully successful, findings.