[WIP] editor window creator

Hello all,

I’ve been working on an editor extension to help with creating your own editor windows.
With this tool you can create your window layout within the unity editor and it will generate the code.
If you want something to happen when for example a button is clicked, you can tell it to generate a function that is called when that button is clicked (using events).

where is a video of me creating a simple file editor/viewer window using this tool:

The goal is to make the editor GUI more intuitive, especially for people that are new to unity and are not used to the old GUI system.

what currently works (on a basic level):

  • designing the window
  • generating code
  • loading code (currently a separate .txt file is used)

What still needs to be done:

  • editing already existing windows
  • extra features for the above 3
  • a lot of polishing

Please, tell what you think of the tool. Would you like to use something like this. Any suggestions?

3 Likes

well, I guess it’s time for a little update.

Since last post I added a little bit of functionality that converts camel case names to normal text. This means that the names of GUI elements (which are actually class names that are retrieved via reflection) are no longer in camel case as seen in the video I uploaded last time.

I also added some code for grouping the GUI elements in categories.
here’s the difference:
2983155--221902--upload_2017-3-6_14-42-43.png

There was also a little bug that I thought to be a feature up until now. It allowed you to change the value of a field within the preview window. But when doing this with more advanced fields like the colorfield, it gave annoying popup windows when you tried to drag the element around. So, now you can only change the value in the tools window.

For the next step I’ll look further into the unity serialization process to keep the windows from breaking when they are reloaded (when you click the play button or after scripts are compiled).

2 Likes

Any update on this? I am interested!

1 Like

Hey jhnr, this looks fantastic! I’d say this is a badly needed feature for Unity, especially now that I’m starting to get into making editor tools myself.

+1, if there is any life here, or even if it isn’t done but can be opensourced, I’d be happy to contribute back fixes.

+1 :smile: Please