How do I disable a whole game object or hide a tilemap?

Hey!
I’d like to hide/show a tilemap from code, but I can’t seem to find any way to do it.
Anyone have any idea?

The correct way to do it would be to send a disable message to the component in question. But judging from the documentation it seems like tilemaps doesn’t have support for disable/enable yet (you could try, the docs might be outdated). In the long run all components should have support for these to messages I guess.

Yeah, I tried that, but it didn’t work.
I rewrote things to circumvent having to enable/disable, but it would be a nice feature to have in the future!

1 Like

I’ll check that we have tilemap enable/disable support in the backlog.

For the time being you could move the map off the projection clip planes and it will be visually culled (off the range -1 - 1 in the default script).

2 Likes