Search Unity

Entity debugger error on Hybrid and Pure entities

Discussion in 'Entity Component System' started by judohurley, Aug 19, 2019.

  1. judohurley

    judohurley

    Joined:
    Feb 27, 2014
    Posts:
    8
    Having error show up on both my dynamically created pure ECS physics entities as well as one I use ConvertToEntity on. See log:

    Log (once selecting one of the Entity # records in the Debugger;
    upload_2019-8-18_17-47-45.png

    In the inspector, the entity looks like this when selecting it in the Debugger.
    upload_2019-8-18_17-49-16.png

    The debugger:
    upload_2019-8-18_17-51-15.png

    Selecting the Physics entity does not throw errors.

    Entities are rendered in scene and all physics seem to work alright.
    upload_2019-8-18_17-53-40.png

    I also have a "player ship" game object that's Hybrid (a probuilder greybox model) that's composed of a main GO with a PhysicsBody and ConverToEntity, and has 14 children with meshes, and 4 children with "box" PhysicsShape components. The parent entity throws the same error as listed above, while the children appear to be error-free.

    Any ideas if this is something I've got wrong or simply a debugger error?
     
  2. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
  3. judohurley

    judohurley

    Joined:
    Feb 27, 2014
    Posts:
    8
    Perfect! Thanks.
    This also addressed (to some degree) an issue I posted last week. My Hybrid object works perfectly fine in the physics interactions with the pure ECS asteroids if I use Convert and Destroy. If I Convert and Inject I can still manipulate the ship via physics, but its PhysicsBody(s) don't collide with the asteroids.