I am having problem with using Hybrid renderer and I don’t know how to solve it. I am adding LocalToWorld, RenderMesh and RenderBounds components to the Entity with this code:
_entityManager.AddComponentData(e, new LocalToWorld()
{
Value = new float4x4()
});
_entityManager.AddSharedComponentData(e,new RenderMesh()
{
castShadows = ShadowCastingMode.Off,
material = texture.material,
mesh = texture.mesh
});
_entityManager.AddComponentData(e, new RenderBounds()
{
Value = new AABB()
{
Center = new float3(0.5f,0.5f,translation.Value.z),
Extents = new float3(1,1,0)
}
});
and Ierror:Attempted to process a chunk with uninitialized Hybrid chunk info
What’s causing that and how to fix it?