Search Unity

[SOLVED] Entities not visible.

Discussion in 'Entity Component System' started by JamesWjRose, Dec 11, 2019.

  1. JamesWjRose

    JamesWjRose

    Joined:
    Apr 13, 2017
    Posts:
    687
    EDIT: Thank you very much to Eizenhorn for alerting me to the fact I need Hybrid Renderer installed. That resolved the issue.

    ----------
    I'm having a strange situation. I wrote some code to allow "autos" to move around roads (Easy Roads 3D) and in my full game I can see the Autos. I have released the code (https://github.com/Blissgig/Easy-Road-3D-ECS-Traffic)

    I created a testbed and there turns out to be an odd situation where the autos are covered:
    Code (CSharp):
    1.  
    2. Entity prefab = GameObjectConversionUtility.ConvertGameObjectHierarchy(auto, World.Active);
    3. var entity = entityManager.Instantiate(prefab);
    4.  
    but they are not visible.

    I have tried the same vehicles that I am using in my game project as well as standard primitives. In either case the entities are available in the Entity Debugger, but not visible in Scene or Game.

    ???!

    Um.... what? Any thoughts?
     
    Last edited: Dec 11, 2019
  2. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,684
    Hybrid Renderer package installed?
     
  3. JamesWjRose

    JamesWjRose

    Joined:
    Apr 13, 2017
    Posts:
    687
    You're my hero. That did it. Thank you SO very much!!!