World.GetOrCreateSystemManaged<EntitiesGraphicsSystem>().RegisterMaterial(material);
mmi.MaterialID = m_MaterialMapping[material];
MaterialMeshInfo.MaterialID = BatchMaterialID;
[RegisterBinding(typeof(MaterialChanger), "frequency")]
RenderMeshUtility.AddComponents(
entity,
entityManager,
desc,
renderMeshArray,
MaterialMeshInfo.FromRenderMeshArrayIndices(0, 0));
[WorldSystemFilter(WorldSystemFilterFlags.BakingSystem)]