I’m doing a minecraft like project with unity dots.
I’m rendering the world with one mesh per chunk (computed at runtime),
my chunks have the following components when they’re created:
Translation, WorldType, Rotation, LocalToWorld, RenderBounds, MeshUpdate
and a RenderMesh is added later by a system (using ECB).
The strange thing is that everything is fine when I run the game with a render distance under a certain level, but when I run it with render distance set to 4 (sometimes 5) or higher then the meshes are visible for a few frames before disappearing (the entity debugger tells me there is no mesh object at that point) with no errors in the console.
Here’s the relevant packages I’m using:
Entities - v0.10.0-preview.6
Hybrid Renderer (v2 not activated) - v0.5.0-preview.6
Unity Physics - v0.3.2
Here is the code if needed Ergo Games / OurCraft Unity · GitLab
(the file where we compute the chunk meshes is Assets/Model/ChunkMeshUpdate.cs
)
Sorry if I’m missing anything, I’m completely lost on this issue and it’s the first time I go as far as posting a forum post.
Thanks for any help you might provide me.