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. Dismiss Notice

Feature Request :: ActiveEditorTracker.MakeCustomEditor

Discussion in 'Scripting' started by numberkruncher, Jul 3, 2012.

  1. numberkruncher

    numberkruncher

    Joined:
    Feb 18, 2012
    Posts:
    953
    Hey guys

    I have posted a feature request (see link below) for the undocumented functionality "ActiveEditorTracker.MakeCustomEditor" to become documented:

    http://feedback.unity3d.com/unity/all-categories/1/hot/active/document-unityeditoractiveedi

    This could be extremely useful for certain extension developers like PlayMaker (possibly) because it is the only way to present and use GUIs that are registered using the `CustomEditor` attribute within custom `EditorWindow` GUIs. For example, lets assume that somebody wants to develop a custom GUI for their custom PlayMaker action component. The logical solution is to use a `CustomEditor` attribute.

    In my extension I would like to make it easier to add and use certain relevant components from the context of a more complicated EditorWindow. This can be achieved easily using "MakeCustomEditor" and the resulting GUI is far easier to use. It is important that the custom inspector interface is displayed for each component.

    This is far less complex than trying to explain to users that they must find the relevant game object, select it, scroll down within the inspector panel, make their changes, and then find their way back to the custom editor window.

    Currently the only documented solution would be to make use of the `SerializableObject` class, but in many cases this fails to produce the relevant GUI and lacks essential functionality.

    I realize that this API is not of use to the majority of developers, however this API would make it possible for the minority to make a big difference to all of their customers. Please vote if you feel that this is worthy of just a paragraph (or even a line :)) of documentation.
     
    sheehanm, marcuslelus and rigidbuddy like this.
  2. marcuslelus

    marcuslelus

    Joined:
    Jun 18, 2018
    Posts:
    66
    8 years later and still no doc. It's a shame.
     
    sheehanm likes this.
  3. sheehanm

    sheehanm

    Joined:
    Jan 11, 2019
    Posts:
    3
    It would be really helpful if they had any documentation for classes such as ActiveEditorTracker. Even if it was just in the Assembly you can open up and had a huge disclaimer "UNSUPPORTED - USE AT YOUR OWN RISK". I'm already using it anyway.