Search Unity

Subscene Bug Report. [Resolved]

Discussion in 'Entity Component System' started by Opeth001, Jun 29, 2019.

  1. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    Im having a weird Bug when using Subscenes


    this my subscene before the conversion :


    this is the result after the conversion:



    Edit:
    This Error is due to using my Custom editor tools functions that changes some Components properties without marking the modified Objects as Dirty within the subscene which makes it crazy.
     
    Last edited: Jul 2, 2019
  2. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Are you using pro-builder to make your scenes? Is it possible there are meshes inside the scene that are being referenced? Conversion flow does not suppport that at this point. But will soon.
     
  3. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    im not using the pro-builder, i fixed this issue by deleting all Enity Cache and subscenes then restarting Unity.
    now everything is working correctly.
     
  4. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    im also getting this weird error when i try to convert a certain Zone within my map:

    Error when processing 'AsyncLoadSceneJob(C:/Unity_Projects/CWBR - DOTS Physics/Assets/StreamingAssets/EntityCache/cf4931da7645092478900b02484ef531_0.entities)': While loading C:/Unity_Projects/CWBR - DOTS Physics/Assets/StreamingAssets/EntityCache/cf4931da7645092478900b02484ef531_0.entities. Shared Component 120 was inserted but got a different index 2 at load time than at build time.
    cf4931da7645092478900b02484ef531_0_shared (Unity.Rendering.RenderMeshProxy) vs Unity.Rendering.RenderMesh


    the weird part is that only this zone is giving this error so my first thought was some Gamobjects are not compatible with the ECS conversion. this zone is made by multiple regions so i tried to convert them one by one and all of them are converted correctly which is confusing me.

    if you have any suggestion it will be much appreciated.
     
  5. Opeth001

    Opeth001

    Joined:
    Jan 28, 2017
    Posts:
    1,116
    in case someone is facing the same problem:
    i filtred all my prefabs within my scene (around 200k) via script to check for weird things like missing references and i found a Component MeshFilter was missing it's mesh reference, by fixing it everything is working correctly.
    hope it will help you guys.
     
    Blueprinter and MrCool92 like this.