bevy_tilemap
bevy_tilemap copied to clipboard
Chunks despawn when moving camera
Bevy Tilemap version
commit: 474bd2f012075f7eec10579462135c1f0085a0bf
Operating system & version
Ubuntu 20.04
What you did
Modified hex_tile_odd_rows
example to allow panning and zooming (re-scaling).
What you expected to happen
The view can be panned/zoomed, and the map remains static.
What actually happened
All chunks except (0,0) de-spawned immediately.
Additional information
This should just be related to how the example is programmed though? Not the actual logic of the code itself?
@joshuajbouw Sorry for the late reply, I didn't see the notification. I'm not sure about the logic. Nothing I saw seemed to account for the despawn, but at this point my memory is a little fuzzy. When I get a chance, I'll try to reproduce this and verify that it's not a mistake on my part.
The despawn happens since I believe that auto spawn is on which would handle spawning / despawning of chunks.
Would auto spawn despawn chunks on transformation? Is that expected behavior?
It can yeah, camera movement, what it can see. Basically.
Oh ok, that's good to know. I've only been working with single chunks for now, but I'm going to get into much larger maps later.