- Home /
Huge lag when toggling between Tile maps in one scene.
I'm trying to toggle between two tilemaps with colliders, turn one off and turn the other on. But every time I do it causes a hitch of 600+ ms.
The code is simply
roomOne.SetActive(false);
roomTwo.SetActive(true);
and the reverse.
roomTwo.SetActive(false);
roomOne.SetActive(true);
Here's a picture of what the profiler tells me
screen-shot-2019-10-30-at-35242-pm.png
(160.1 kB)
Comment