Skip to content

Commit

Permalink
Fix TriInspector doesn't work with InlineEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
vanifatovvlad committed Apr 6, 2024
1 parent 57e726c commit 29dafd0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Editor/Editors/TriEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ protected virtual void OnDisable()
_core.Dispose();
}


public override void OnInspectorGUI()
{
_core.OnInspectorGUI();
}

public override VisualElement CreateInspectorGUI()
{
return _core.CreateVisualElement();
Expand Down
7 changes: 7 additions & 0 deletions Editor/Editors/TriScriptedImporterEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public override void OnDisable()
base.OnDisable();
}

public override void OnInspectorGUI()
{
_core.OnInspectorGUI();

ApplyRevertGUI();
}

public override VisualElement CreateInspectorGUI()
{
var root = new VisualElement();
Expand Down

0 comments on commit 29dafd0

Please sign in to comment.