Fix TriInspector doesn't work with InlineEditor

This commit is contained in:
VladV 2024-04-06 11:17:08 +03:00
parent 57e726cc4f
commit 29dafd0193
2 changed files with 13 additions and 0 deletions

View File

@ -17,6 +17,12 @@ namespace TriInspector.Editors
_core.Dispose(); _core.Dispose();
} }
public override void OnInspectorGUI()
{
_core.OnInspectorGUI();
}
public override VisualElement CreateInspectorGUI() public override VisualElement CreateInspectorGUI()
{ {
return _core.CreateVisualElement(); return _core.CreateVisualElement();

View File

@ -30,6 +30,13 @@ namespace TriInspector.Editors
base.OnDisable(); base.OnDisable();
} }
public override void OnInspectorGUI()
{
_core.OnInspectorGUI();
ApplyRevertGUI();
}
public override VisualElement CreateInspectorGUI() public override VisualElement CreateInspectorGUI()
{ {
var root = new VisualElement(); var root = new VisualElement();