Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug beta14 Loading Entity Scene failed because the entity header file couldn't be resolved.

Discussion in '2020.2 Beta' started by jdtec, Dec 8, 2020.

Thread Status:
Not open for further replies.
  1. jdtec

    jdtec

    Joined:
    Oct 25, 2017
    Posts:
    302
  2. tjumma

    tjumma

    Joined:
    Sep 30, 2019
    Posts:
    12
    Anyone facing the Loading Entity Scene failed because the entity header file couldn't be resolved issue:

    I've figured out that this issue is rarely related to the problem with the SubScene itself, but instead is cause by the Exception thrown by Burst compilation during the SubScene import. To try and identify the source of the real problem you can:
    1. Disable the SubScene in the Hierarchy and run the PlayMode - sometimes it shows the bugs and exceptions that are not show with the SubScene being turned on (such as
    GetSingleton() requires that exactly one entity exists that matches this query, but there are {0}
    )


    2. After getting the Loading Entity Scene failed because the entity header file couldn't be resolved error, go to /Logs folder of your project and open the "AssetImportWorker[0-N].log file.


    Type in the "Exception" in the search - you will probably be able to find something like this:



    In my case, the compilation exception was caused by incorrectly managing native collections. In yours - it might be smth else. Anyway, you can comment out the problematic code and try building again to check if it indeed is the source of the problem. Hope it helps!:rolleyes:
     
Thread Status:
Not open for further replies.