We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad3b3c commit d0cb5a7Copy full SHA for d0cb5a7
RasterPropMonitor/Auxiliary modules/PropBatcher.cs
@@ -292,6 +292,7 @@ public void Rebuild()
292
public void LateUpdate()
293
{
294
if (!needsUpdate) return;
295
+ needsUpdate = false; // must do this early because regenerating the text can invalidate it again!
296
297
var worldToLocal = batchRoot.transform.worldToLocalMatrix;
298
CombineInstance[] instances = new CombineInstance[textMeshes.Count];
@@ -306,8 +307,6 @@ public void LateUpdate()
306
307
meshFilter.mesh.Clear();
308
meshFilter.mesh.CombineMeshes(instances);
309
meshFilter.mesh.UploadMeshData(false);
-
310
- needsUpdate = false;
311
}
312
313
0 commit comments