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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Can i make a window display all component of one gameobject under graph form

Discussion in 'Editor & General Support' started by thangnh111, Jul 19, 2022.

  1. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    14
    In my game, enemy gameobject have so many component (about 20), it make me feel so hard when trying to adjust them. I want to make them easy to modify and maintain, my first idea is make a custom window editor which can display all component under graph form (like graph view, shader graph ...) but i don't know is this possible to do.

    This is an example show what i want to do but i don't know how to start :((
    upload_2022-7-19_8-49-10.png

    How can i make an editor window like this to show all component of a gameobject? Anyone can help.


    EDIT: I'm looking some project like xNode: https://assetstore.unity.com/packages/tools/visual-scripting/xnode-104276
    NodeGraph: https://github.com/alelievr/NodeGraphProcessor, but it seem doesn't support editor.

    EDIT 2: https://assetstore.unity.com/packages/tools/utilities/relationsinspector-53147 i think this will help, but still don't know what to do :D
    Is there someone have experience with RI. can i do something like this:
    upload_2022-7-19_9-31-11.png
     
    Last edited: Jul 19, 2022
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,003
    You probably can do this with Xnode, you're just going to have to get very familiar with it and with both Editor scripting and UI toolkit to make this possible.

    Needless to say what you're asking is fairly advanced territory and you're going to need robust knowledge here to make it happen.

    Basically there's no easy answer here. Some other UI addons like Odin Inspector could help here, though it won't be in node editor form.
     
  3. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    14
    @spiney199 yeah, i need to complete it in a short time (about 10 day), xnode seem pretty hard to get familiar with it.
    so i still looking for another solution.
     
  4. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    14
  5. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,003
    Well I wish you luck. If you're coming in with not much Editor experience it's going to be a tough challenge for sure.

    You could roll something from scratch with Graph View but that's a learning curve and a half from personal experience.

    Questions like these are best directed to the asset developer. They'll be able to tell you pretty quickly whether it's possible or not. If an asset is being regularly updated, they should get back to you quickly.
     
    thangnh111 likes this.
  6. thangnh111

    thangnh111

    Joined:
    Aug 4, 2020
    Posts:
    14
    Thanks @spiney199, i already post question on RI realease thread, hope the asset dev will see soon :D