Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Tree Error-Need Help

Discussion in 'World Building' started by Ebonicus, Jan 31, 2022.

  1. Ebonicus

    Ebonicus

    Joined:
    Oct 31, 2016
    Posts:
    158
    Need help with Unity Error:
    Tree prefab is missing at index 0
    Tree prefab is missing at index 1

    This started when I deleted old speed tree folder that came with a an asset pack, they were taking forever to compute shader variations, and I do not use speed tree, apparently they were assigned to some terrains and never painted.

    On each terrain, I saw "tree missing" in the inspector window tree panel. Per many online posts, I removed the missing tree from all terrains. Error still appeared.

    So I assigned a new tree to all terrains at index 0 and 1.
    Still getting the same error for ONE terrain, and none are missing trees at index 0 and 1.

    I have checked every prefab and scene, none are missing.
    Per unity bug, I also reimported all assets, still same issue.

    I have also made a dummy terrain, and assigned it to every terrain data file in the project to check if any stray scenes were using terrain data files that had missing trees, none are missing.

    I have also assigned every terrain layer to this dummy terrain, and none had missing trees.


    Where exactly is tree info stored? Game Object, or Terrain Data, or the Terrain layer?

    My only option at this point is going to be exporting and removing all terrains from the project, and I would to avoid that, because importing the terrains back will likely cause the same issue since the Unity bug fix: Import all did nothing.

    Has anyone encountered this and resolved it?
     
  2. Ebonicus

    Ebonicus

    Joined:
    Oct 31, 2016
    Posts:
    158
    I should also add that this error appears after the splash on the main menu, on that scene and splash there are no terrains.
     
  3. Ebonicus

    Ebonicus

    Joined:
    Oct 31, 2016
    Posts:
    158
    At this point all I could do was put back the stupid speedtree assets, I cannot build due to TLC alloc errors streaming in console.

    Sure would be nice to build my apps without 1hr of speedtree shader variations, since my app has no trees.
    @unity-admin726