Search Unity

Bug Physics Shape gizmo not rendering? (RESOLVED)

Discussion in 'Physics for ECS' started by DaleNewcomb, Jan 13, 2021.

  1. DaleNewcomb

    DaleNewcomb

    Joined:
    Sep 6, 2019
    Posts:
    4
    Is the Physics Shape gizmo broken? I am using Unity 2020.2.1f1 with Unity Physics 0.5.1-preview.2 and DOTS Editor 0.11.0-preview.3

    Box Collider (in Edit mode) still looks like this (correct):
    upload_2021-1-13_11-27-52.png

    Physics Shape now looks like this, even with Physics Shape gizmo turned on (broken):
    upload_2021-1-13_11-30-34.png

    UPDATE: Gimzo works fine...all Gizmos were turned off. Not sure if that's the new default or if I did it and forgot about it. Turning them back on rendered the shape as expected.
     
    Last edited: Jan 15, 2021
  2. Sab_Rango

    Sab_Rango

    Joined:
    Aug 30, 2019
    Posts:
    121
  3. DaleNewcomb

    DaleNewcomb

    Joined:
    Sep 6, 2019
    Posts:
    4
    Hmm, but in my case I don't see any tearing or visual artifacts, I just see no gizmo rendered at all, as if it was disabled.
     
  4. Sab_Rango

    Sab_Rango

    Joined:
    Aug 30, 2019
    Posts:
    121
    Yeah, I know. I hope developers will fix it !
     
  5. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    This might be silly, but are you sure gizmos are turned on (all together, not individually)? I've just checked locally and they were off by default for me.
     
    DaleNewcomb likes this.
  6. Sab_Rango

    Sab_Rango

    Joined:
    Aug 30, 2019
    Posts:
    121
    Indeed, DOTS Gizmos will be totally gone after playing some time with a new DOTS project.
     
  7. DaleNewcomb

    DaleNewcomb

    Joined:
    Sep 6, 2019
    Posts:
    4
    :facepalm: No, not silly at all! This was, in fact, the problem. Not sure if I turned them off and forgot about it or if they were now off by default after upgrading to the latest version. Either way, thanks!
     
    petarmHavok likes this.
  8. DaleNewcomb

    DaleNewcomb

    Joined:
    Sep 6, 2019
    Posts:
    4
    Still odd that Box Collider was working...that was what threw me off of thinking about the overall gizmo button.
     
    petarmHavok likes this.
  9. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    There is a combination of Gizmos and Handles being used in the codebase that should probably be unified. PhysicsShapeAuthoring component has a custom
    UnityEditor.Editor
    , and the Box Collider specifically has a custom 3d GUI built up using the
    UnityEditor.Handles
    API rather than the
    UnityEditor.Gizmos
    API.
     
    DaleNewcomb likes this.