0
\$\begingroup\$

How can I modify the GUI of a default Unity window?

E.g. I am trying to modify the Animation window. Here is what I am trying to do for the beginning:

using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(Animation))]
public class AnimationExtended : Editor
{
    public override void OnInspectorGUI()
    {
        
    }
}

I would expect the code above to hide the content of the Animation window completely, but it does not. Why?

Here is what I mean by the Animation window. enter image description here

Question which made me want to add a custom feature to the Animation tab.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ The code you've written there is for overriding the appearance of the AnimationExtended component in the Inspector. It does not refer to the Animation window in any way. \$\endgroup\$
    – DMGregory
    Commented Mar 21, 2021 at 13:39
  • \$\begingroup\$ @DMGregory, it seems it is impossible to modify the native Unity windows as of right now, then. Is it the case? Is it maybe possible to draw them inside a custom window somehow? I mean to draw a native Unity window inside a custom window. \$\endgroup\$
    – some1 here
    Commented Mar 21, 2021 at 13:40

0

You must log in to answer this question.

Browse other questions tagged .