Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug [1.0.0-pre.44] Error when processing AsyncLoadSceneJob

Discussion in 'Entity Component System' started by SchnozzleCat, Feb 17, 2023.

  1. SchnozzleCat

    SchnozzleCat

    Joined:
    Oct 23, 2013
    Posts:
    42
    This is an issue I had previously, but only in a build, but with .44 it's now also present in the editor.

    The error is as follows:
    Error when processing 'AsyncLoadSceneJob(VirtualArtifacts/Extra/e4/e4a73cc6a664b050ee7b247f5b5f06c0.0.entities)': The given key '<GameObjectName> (UnityEngine.GameObject)' was not present in the dictionary.


    This seems to happen if the entity references a game object that is also baked. In my case specifically it's the same entity (meaning it has a component with a game object reference that is baked, and that reference points to itself).

    Edit: It seems the actual issue is referencing a non-gameobject (i.e. monobehaviour) instead of the gameobject on the managed component. Is this just not supported? Even referencing both (the gameobject and the monobehaviour) causes the scene to fail loading.
     
    Last edited: Feb 17, 2023
  2. Selmar

    Selmar

    Joined:
    Sep 13, 2011
    Posts:
    55
    Also ran into this, thanks for the information!

    It would be nice if this worked. (edit: had this in pre 65, not tested in 1.0.8 yet)