SuperTiled2Unity icon indicating copy to clipboard operation
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.

Open beatless opened this issue 1 year ago • 2 comments

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;
        }
    }`

beatless avatar Nov 04 '23 02:11 beatless

I think I'm seeing the same thing. Where this gets set but only after the first run which throws the errors.

snixer724 avatar Jan 31 '24 02:01 snixer724

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.

Seanba avatar Mar 11 '24 17:03 Seanba