Frame drop/lag spike ontrigger

So when I am play testing in the editor everything works fine, but when I build and launch my game
I get a huge lag spike on the first trigger I enter. (It only happens on the first one). After that it works fine.
The problem is that the lag spike on the first trigger is randomly break another trigger could be any…

Any idea this is happening. I don’t know why I even bother asking this forum never answers.

Looks like it has nothing to do with the collider but instead it is a classic example of the glyphs sheet being made when you enable the text. You can move the lag spike to the beginning of the level by caching the glyphs when the scene is loaded.
Related Answer


Another trick could be to enable the panel from the beginning and instead toggle the visibilty.