Fix Tri-Inspector incorrectly rendered built-in types

This commit is contained in:
VladV 2022-07-03 10:04:38 +03:00
parent 9a058da91a
commit 46109e5520

View File

@ -5,7 +5,17 @@ using UnityEngine;
namespace TriInspector namespace TriInspector
{ {
[CanEditMultipleObjects] [CanEditMultipleObjects]
[CustomEditor(typeof(Object), editorForChildClasses: true, isFallback = true)] [CustomEditor(typeof(MonoBehaviour), editorForChildClasses: true, isFallback = true)]
internal sealed class TriMonoBehaviourEditor : TriEditor
{
}
[CanEditMultipleObjects]
[CustomEditor(typeof(ScriptableObject), editorForChildClasses: true, isFallback = true)]
internal sealed class TriScriptableObjectEditor : TriEditor
{
}
public class TriEditor : Editor public class TriEditor : Editor
{ {
private TriPropertyTreeForSerializedObject _inspector; private TriPropertyTreeForSerializedObject _inspector;