I have a weird issue that only occurs in the unity web player.
Basically, once i enter a certain area a few enemies (GameObjects that is) are instantiated.
Then, i can move on to a second area, once again spawning enemies.
Here is the issue: If i kill the first group of enemies before i move on, the web player crashes when the second group is supposed to spawn. If i, however, do not kill the first group and just move on the crash does not occur.
It works fine when i run the same thing in the editor or in the standalone player. I’ve tried changing quality settings, thinking perhaps it was some sort of memory issue, but there is no difference.
The stack trace is empty and the only error message i get is:
I’ve tried a bunch of different things but i cannot figure out why the web player alone does this. It looks like some kind of silent optimization is somehow cleaning up stuff that is still going to be used, but that is just a guess from my side.
Any ideas?