feat: keep properly canvas batches

pull/197/head
mob-sakai 2021-09-21 16:40:14 +09:00
parent 82eb90244c
commit 19f732a564
1 changed files with 11 additions and 0 deletions

View File

@ -95,7 +95,18 @@ namespace Coffee.UIParticleExtensions
cis.Clear();
Profiler.EndSample();
Profiler.BeginSample("[UIParticle] MeshHelper > Recalculate Bounds");
result.RecalculateBounds();
Profiler.EndSample();
var bounds = result.bounds;
var center = bounds.center;
center.z = 0;
bounds.center = center;
var extents = bounds.extents;
extents.z = 0;
bounds.extents = extents;
result.bounds = bounds;
}
public static void DiscardTemporaryMesh(Mesh mesh)