Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Customize Editor

Discussion in 'Virtual Production' started by GeniusKoala, Oct 25, 2021.

  1. GeniusKoala

    GeniusKoala

    Joined:
    Oct 13, 2017
    Posts:
    97
    Hi,

    We are going to invest more time in creating a pipeline using Unity. I would like to customize the Editor to add our customs buttons or information. We would like to login to our own tracking software for example and display information from it in the Editor. I would like to also remove some default layout information we do not need like the ones in the top-right of the window. Is it also possible to add buttons next to the Play button (like a recording button for example)? So far I know how to add custom menus or contextual menus only.

    upload_2021-10-25_17-10-24.png

    Thanks in advance for the help!
     
  2. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    588
    I create my own window with buttons in it for motion recording. Complete hack of code, but if you look at the top it might give some hints of what to search for to find tutorials on for creating your own editor windows. It starts with a button to show "start listening" (enable receiving tracking events), then once it is listening a "start recording" button appears.

    It is NOT pretty code, but might give a hint. https://gist.github.com/alankent/ee46bb20adce9c09be1a47dcb1179f91 (from this thread https://forum.unity.com/threads/evm...mc-protocol-live-capture-in-a-window.1181998/)

    (I don't know if you can adjust the top bar - to add or remove buttons.)
     
    GeniusKoala likes this.
  3. GeniusKoala

    GeniusKoala

    Joined:
    Oct 13, 2017
    Posts:
    97
    What does the Editor layout look like for you I does not bother you? I would like to see what you can achieve before goign deep into it. I may misread your links but it looks like custom windows for me and what I need is to modify the Editor layout itself with removing buttons or adding mines or labels for example.

    EDIT : I may have found something : https://github.com/marijnz/unity-toolbar-extender
     
    Last edited: Oct 25, 2021
    Lars-Steenhoff likes this.
  4. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    588
    It is a custom window, nothing more. I don't know how to adjust the top bar - that code you found does look like what you want (if you are happy with "unsupported APIs"). I just lay out the windows as appropriate for the task at hand (I just drag the windows around and dock them in different places). Its quite small so I just squirrel it away in a corner somewhere. I also don't use it all the time - only when creating a new animation clip - so it does not bother me that it is not prominent. I was not sure what additional fields I wanted over time (the original components I borrowed from had LOTS of other fields), so a Window I can add more fields to was fine for me.
     
    GeniusKoala likes this.