Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Resolved Visualize generated Physics Colliders in scene

Discussion in 'DOTS Physics' started by slushieboy99, Sep 5, 2021.

  1. slushieboy99

    slushieboy99

    Joined:
    Aug 29, 2014
    Posts:
    31
    Currently I don't see any way to visualize a meshcollider generated at runtime, so I have no idea what it looks like unless I create a separate entity with the same rendermesh. It would be nice to be able to view physics colliders like we can with GameObjects.
     
  2. CookieStealer2

    CookieStealer2

    Joined:
    Jun 25, 2018
    Posts:
    57
    Have you tried making a gameobject and attaching a physics debug display component? upload_2021-9-5_19-55-16.png
    It can be somewhat buggy, but should be able to display the colliders.
     
  3. slushieboy99

    slushieboy99

    Joined:
    Aug 29, 2014
    Posts:
    31
    Yeah I tried that, but doesn't seem to display my meshcolliders, not sure why.
     
  4. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    Make sure Gizmos are turned on in the tab you are trying to see the colliders. IIRC by default Gizmos are on in the Scene tab but off for the Game tab.
     
  5. slushieboy99

    slushieboy99

    Joined:
    Aug 29, 2014
    Posts:
    31
    Ah that worked, thanks!
     
unityunity