mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Hide header in reference type dropdown
This commit is contained in:
parent
0d0ec09bf4
commit
5a7b20958f
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using TriInspectorUnityInternalBridge;
|
||||
using UnityEditor;
|
||||
using UnityEditor.IMGUI.Controls;
|
||||
using UnityEngine;
|
||||
@ -16,6 +17,7 @@ namespace TriInspector.Utilities
|
||||
{
|
||||
var dropdown = new ReferenceTypeDropDown(property, new AdvancedDropdownState());
|
||||
dropdown.Show(rect);
|
||||
AdvancedDropdownProxy.SetShowHeader(dropdown, false);
|
||||
Event.current.Use();
|
||||
}
|
||||
}
|
||||
|
12
Unity.InternalAPIEditorBridge.012/AdvancedDropdownProxy.cs
Normal file
12
Unity.InternalAPIEditorBridge.012/AdvancedDropdownProxy.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using UnityEditor.IMGUI.Controls;
|
||||
|
||||
namespace TriInspectorUnityInternalBridge
|
||||
{
|
||||
internal class AdvancedDropdownProxy
|
||||
{
|
||||
public static void SetShowHeader(AdvancedDropdown dropdown, bool showHeader)
|
||||
{
|
||||
dropdown.m_WindowInstance.showHeader = showHeader;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fbe08837c89a44e29ea221ffeadb811d
|
||||
timeCreated: 1652084409
|
Loading…
Reference in New Issue
Block a user