Thanks for reply.
The problem is only happened on chunk, not every mesh; and I think it's not a data problem, because the error not happened every time, just randomly.
And I try this:
change tk2dTileMapMeshBuilder.cs line 145
var meshFilter = chunk.gameObject.GetComponent<MeshFilter>();
meshFilter.sharedMesh = chunk.mesh;
to
if (Application.isPlaying == false)
{
var meshFilter = chunk.gameObject.GetComponent<MeshFilter>();
meshFilter.sharedMesh = chunk.mesh;
}
Then everything works fines, no "aabb.IsValid()" anymore.
I guess it may caused by mesh.RecalculateBounds(), maybe sometimes it sucked