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\$ 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\$ Commented Mar 21, 2021 at 13:40

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.