// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UIElements;
using Object = UnityEngine.Object;
namespace UnityEditor.UIElements
{
internal class EditorElement : VisualElement
{
readonly InspectorWindow inspectorWindow;
Editor[] m_Editors => inspectorWindow.tracker.activeEditors;
This file has been truncated. show original
Would also be useful to override OnHeaderControlsGUI()
No plans to expose EditorElement anytime soon. It’s a really specific low-level part of the Inspector logic. But I’m curious why you want to use it directly.
I wanted to override the header buttons on certain asset types.