Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when uisng cinemachine with superTiled2Unity,Instantiat an superTiled gameObject got error "In order to call GetTransformInfoExpectUpToDate, RendererUpdateManager.UpdateAll must be called first" randomly. #258

Open
beatless opened this issue Nov 4, 2023 · 2 comments

Comments

@beatless
Copy link

beatless commented Nov 4, 2023

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;
        }
    }`
@snixer724
Copy link

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

@Seanba
Copy link
Owner

Seanba commented Mar 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants