Why would OnTriggerEnter code not be run when building to WebGL but runs fine in development environment?
Due to a bug. Consider filing a bug report with a repro.
If I rememebr correclty, in 5.0 on TriggerEnter/Leave were extremely unreliable. Basically… the engine had problem detecting sutaiotns when an obejct spawned within trigger, and number of “Enter” events did not match number of “Leave” events. I don’t know if it was ever fixed.
1 Like
Thanks neginfinity, it could be because I am still on 5.3.5, is there a place to check existing bug reports?
You could try https://issuetracker.unity3d.com/
But some of the reports are private and are not visible to the public, if I remember it correctly.
I’d recommend filing a bug report.