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

Show systems and system groups on the debugger when not using a player loop

Discussion in 'Entity Component System' started by sebas77, Jan 7, 2020.

  1. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,594
    We explicitly tick the world systems, calling OnUpdate. In doing so the systems are not shown on the debugger, is there a way to see them anyway?
     
    Last edited: Jan 7, 2020
  2. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    3,984
    Note that calling OnUpdate bypasses the automatic dependency management system whereas calling Update does not (even if ticking systems manually). I haven't tried this, but you might be able to get them to show up by putting the systems in ComponentSystemGroups in which you override the ComponentSystemGroups' OnUpdate methods to do nothing.
     
    sebas77 likes this.
  3. sebas77

    sebas77

    Joined:
    Nov 4, 2011
    Posts:
    1,594
    Sorry my mistake, I call Update of course and still doesn't show.
     
  4. elcionap

    elcionap

    Joined:
    Jan 11, 2016
    Posts:
    138
    I'm not sure if it's still this way but Entity Debugger used to read directly in the PlayerLoop for a specific internal delegate type. If it's still the case, as a workaround you can put all your manual updated systems inside a custom system group, disable it (not be automatically updated) and let it be placed in the player loop. Sure the order the will be listed in the Entity Debugger will be wrong and I'm not sure if the duration will display correctly but it should be listed there.

    []'s
     
    PublicEnumE likes this.