Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved DebugDisplay.DrawComponent

Discussion in 'Physics for ECS' started by OUTTAHERE, Aug 8, 2023.

  1. OUTTAHERE

    OUTTAHERE

    Joined:
    Sep 23, 2013
    Posts:
    656
    This gameobject keeps getting created in my editor scene (not the game scene).

    I think it's created by some sort of async task that is not stopped, It seems to get created just before PlayMode is entered, but since I'm really struggling with physics baking processes, maybe this is created by something I inadvertently do?

    upload_2023-8-8_9-17-42.png
     
    NoPants_ and mgi388 like this.
  2. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    213
    This is an internal component that's needed by the Physics Debug Display to trigger the debug draw at the right moment.
    You can safely ignore it.
    It's not caused by anything you do, other than the fact that you added a Physics Debug Display to your scene.
     
  3. mgi388

    mgi388

    Joined:
    Jun 3, 2023
    Posts:
    4
    At least for me, two things I noticed about it that were confusing and made it unclear if this was working or not:

    1. The Script property is empty and makes it look broken. Double clicking the empty script also goes to an empty inspector:

    upload_2023-8-21_10-14-18.png
    upload_2023-8-21_10-14-25.png

    2. The docs link goes to a 404:

    upload_2023-8-21_10-14-54.png
     
    Last edited: Aug 21, 2023
    layker90524 and daniel-holz like this.
  4. OUTTAHERE

    OUTTAHERE

    Joined:
    Sep 23, 2013
    Posts:
    656
    Yeah put some hideflags on that thing already
     
  5. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    213
    I was just looking into this.

    Fun fact: hiding the game object with the draw component in the hierarchy also doesn't call its
    OnDrawGizmos()
    function anymore, which then deactivates the debug display hehe
    The workaround I found is to hide its parent in the hierarchy, which works like a charm. The debug display shows up without this internal game object appearing in the hierarchy anymore.
     
    OUTTAHERE likes this.
  6. daniel-holz

    daniel-holz

    Unity Technologies

    Joined:
    Sep 17, 2021
    Posts:
    213
    Note that this will be fixed in the next release of 1.1.