Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Bug After upgrading Entities package from .9 to .10, child Camera objects no longer render outside edit.

Discussion in 'Graphics for ECS' started by Zerio777, May 15, 2020.

  1. Zerio777

    Zerio777

    Joined:
    Jan 12, 2015
    Posts:
    24
    Up until now, it hasn't been an issue just throwing the camera on the Player game object, and converting the Player to entity, destroying it in the process.... now, as of .10 upgrade, does no longer seem to support this commonsensical simplicity.

    If this is not a bug, would I now be restricted to produce a copytransformtogameobject system every time I want the camera to change its target to an entity (or similar camera grab of entity transforms from within monobehaviors)?

    I must be missing something, as after downgrading back to .9, the issue is not resolved.

    upload_2020-5-14_23-15-39.png
     
    Last edited: May 15, 2020
  2. Zerio777

    Zerio777

    Joined:
    Jan 12, 2015
    Posts:
    24
    So.... I can't actually use Camera now without keeping injected gameobjects copying from entity transforms, and monobehavior. As fun as that sounds, it's redundant as S***.

    Can anybody help correct
     
  3. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,349
    Add HYBRID_ENTITIES_CAMERA_CONVERSION to your scripting define symbols. That should get things working with Convert and Destroy again.
     
    Zerio777 and florianhanke like this.
  4. Zerio777

    Zerio777

    Joined:
    Jan 12, 2015
    Posts:
    24
    That seems to have gotten things back on track. Thank you.

    Edit: not quite sure how to clear the [bug] tag, or whatever the process may be, if one. This issue is solved.
     
  5. Zerio777

    Zerio777

    Joined:
    Jan 12, 2015
    Posts:
    24
    After looking around a while, I've come across the RenderMeshSystemV2 taking a large chunk of the main thread, every frame, to keep ~1000 objects sharing a single GPU instanced material....

    ...would you happen to have any tips for best working the new system?