Skip to content

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

Description

@beatless

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions