Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Entity System Debugger and Code Generator

Discussion in 'Entity Component System' started by zulfajuniadi, Jun 30, 2018.

  1. zulfajuniadi

    zulfajuniadi

    Joined:
    Nov 18, 2017
    Posts:
    117
    I've created an Entity System Debugger for ECS.

    Toggle System.gif

    Screen captures of the features: https://imgur.com/a/ItJ7pUv

    Features:
    • Vertical layout
    • Systems grouped by namespace
    • View / edit running systems properties
    • Enable / disable systems
    • View system component group data
    • Sample random entity of a component group
    • Multiple world support
    • View systems even when there's no active world
    • Open Profiler and jump to the system
    • Quick search systems
    • Open Entity Component Debugger
    • Open your system file in your code editor
    • System Update Order
    Bonus Feature:
    • Code Generator
    Todos:
    • Component Explorer
    • Archetype Explorer
    Github: https://github.com/zulfajuniadi/unity-ecs-system-debugger

    Found a bug?

    Open an issue on github

    Want to contribute?

    Fork and send pull request

    But why???

    https://forum.unity.com/threads/systems-needs-serialized-properties-exposed-in-the-editor.537954/
     

    Attached Files:

    Last edited: Jun 30, 2018
  2. zulfajuniadi

    zulfajuniadi

    Joined:
    Nov 18, 2017
    Posts:
    117
    I've updated the code generator

    Now it can generate the following:
    1. Bootstrap
    2. ComponentData with ComponentDataWrapper
    3. SharedComponentData with SharedComponentDataWrapper
    4. ComponentSystem
    5. JobComponentSystem
    6. IJob
    7. IJobParallelFor
    8. IJobProcessComponentData
    9. IJobNativeMultiHashMapMergedSharedKeyIndices
    Usage:

    Create the Folders:

    Create Folders.PNG

    Generate away:

    Create Bootstrap.PNG

    Any suggestions are welcome. I usually lurk on the Unity Discord server. My nick there is Hail Burns.

    https://discord.gg/9NZmADk
     
    Last edited: Jul 1, 2018
    rigidbuddy and SugoiDev like this.
  3. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    813
    Just imported the package from the second post and got the following error:

    Code (CSharp):
    1. There is no argument given that corresponds to the required formal parameter 'propagate' of 'EntityDebugger.SetSystemSelection(ScriptBehaviourManager, World, bool, bool)'
     
  4. zulfajuniadi

    zulfajuniadi

    Joined:
    Nov 18, 2017
    Posts:
    117
    Thanks for the heads up. Yeah the API changed between preview.6 and preview.8 attached is the updated package
     

    Attached Files:

    laurentlavigne and Rotary-Heart like this.
  5. davenirline

    davenirline

    Joined:
    Jul 7, 2010
    Posts:
    969
    Thanks for this. It's very useful.
     
    zulfajuniadi likes this.