SuperTiled2Unity
SuperTiled2Unity copied to clipboard
when uisng cinemachine with superTiled2Unity,Instantiat an superTiled gameObject got error "In order to call GetTransformInfoExpectUpToDate, RendererUpdateManager.UpdateAll must be called first" randomly.
I change the Start function of class SuperMap, add a delay call then fixed this bug. `IEnumerator Start() { // This is a hack so that Unity does not falsely report prefab instance differences from our importer map // Look for where renderer.detectChunkCullingBounds is set to Manual in the importer code which is the other part of this hack yield return new WaitForEndOfFrame();
foreach (var renderer in GetComponentsInChildren<TilemapRenderer>())
{
renderer.detectChunkCullingBounds = TilemapRenderer.DetectChunkCullingBounds.Auto;
}
}`
I think I'm seeing the same thing. Where this gets set but only after the first run which throws the errors.
The next version of ST2U has a lot of changes including a fix for the hack I put into place here. ST2U is now going to set the culling bounds instead of using the Auto setting. I'll let you know when that's ready.