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 How can i create a Editor Window Like Animator?

Discussion in 'Editor & General Support' started by CreatAWorld, Sep 30, 2021.

  1. CreatAWorld

    CreatAWorld

    Joined:
    Jul 1, 2019
    Posts:
    7
    Hello everyone,I want to create a Node Graph Like Animator. The Animator has left view show layers and paramters and right view show AnimatorState Nodes. I dont know how to do that, should I use UIElement, or just use IMGUI?
    Now,I can generate Node And Line in Editor Window,but them can be Clip By left view ,and the left view can not be dragged.I use guiStyle of "Box" , I think it is not right, i want Animator Editor Window Style,shoulde i create a style like Animator?

    Now , My Editor Window:
    upload_2021-10-1_1-29-5.png

    I Want:
    upload_2021-10-1_1-32-7.png
     
  2. Lurking-Ninja

    Lurking-Ninja

    Joined:
    Jan 20, 2015
    Posts:
    9,991
    Here is a tutorial series about how to make a graph window:


    I'm pretty sure you can find countless others if you search for it.
     
  3. CreatAWorld

    CreatAWorld

    Joined:
    Jul 1, 2019
    Posts:
    7
    Thanks,I have find that~