bevy_ecs_tilemap icon indicating copy to clipboard operation
bevy_ecs_tilemap copied to clipboard

Hide entire layer

Open IceSentry opened this issue 4 years ago • 1 comments

I'm working on a dwarf fortress style map with multiple z-level used to represent a 3rd dimension while keeping everything 2d.

Currently, I'm using a different layer for each z_level. When I want to change the current z_level I simply hide any layers above the current one. My problem is that, to do this I have to set every tile in each layer to be not visible. I know there's a despawn_layer (technically, depsawn_layer 😉), but when I used it I couldn't figure out how to rebuild a layer at run time and I also don't think I should do that any way.

Essentially, what I want is a way to set an entire layer to not visible without having to loop on every tile.

Also, what's the best place to ask a question about this crate? Should I just ask in the bevy discord channel?

IceSentry avatar Jun 21 '21 03:06 IceSentry

We should have a way of hiding entire layers. Thanks for the issue!

StarArawn avatar Jun 28 '21 11:06 StarArawn

This is now complete please use the Visibility component on the TileMap bundle!

StarArawn avatar Aug 11 '22 16:08 StarArawn