using System; using UnityEngine.UIElements; namespace UnityEditor.Tilemaps { /// /// Visual Element showing the Inspector for the Active Brush for Grid Painting. /// [UxmlElement] public partial class TilePaletteBrushInspectorElement : IMGUIContainer { /// /// Factory for TilePaletteBrushInspectorElement. /// [Obsolete("TilePaletteBrushInspectorElementFactory is deprecated and will be removed. Use UxmlElementAttribute instead.", false)] public class TilePaletteBrushInspectorElementFactory : UxmlFactory {} /// /// UxmlTraits for TilePaletteBrushInspectorElement. /// [Obsolete("TilePaletteBrushInspectorElementUxmlTraits is deprecated and will be removed. Use UxmlElementAttribute instead.", false)] public class TilePaletteBrushInspectorElementUxmlTraits : UxmlTraits {} /// /// USS class name of elements of this type. /// private new static readonly string ussClassName = "unity-tilepalette-brushinspector"; private TilePaletteBrushInspector m_BrushInspector = new TilePaletteBrushInspector(); /// /// Initializes and returns an instance of TilePaletteBrushInspectorElement. /// public TilePaletteBrushInspectorElement() { AddToClassList(ussClassName); TilePaletteOverlayUtility.SetStyleSheet(this); onGUIHandler = m_BrushInspector.OnGUI; } } }