diff --git a/Editor/Editors/TriScriptedImporterEditor.cs b/Editor/Editors/TriScriptedImporterEditor.cs index f71a07c..f5a977f 100644 --- a/Editor/Editors/TriScriptedImporterEditor.cs +++ b/Editor/Editors/TriScriptedImporterEditor.cs @@ -1,8 +1,13 @@ using TriInspectorUnityInternalBridge; using UnityEditor; -using UnityEditor.AssetImporters; using UnityEngine.UIElements; +#if UNITY_2020_2_OR_NEWER +using UnityEditor.AssetImporters; +#else +using UnityEditor.Experimental.AssetImporters; +#endif + namespace TriInspector.Editors { [CanEditMultipleObjects] diff --git a/Editor/Elements/TriBoxGroupElement.cs b/Editor/Elements/TriBoxGroupElement.cs index 9952856..0171153 100644 --- a/Editor/Elements/TriBoxGroupElement.cs +++ b/Editor/Elements/TriBoxGroupElement.cs @@ -18,7 +18,7 @@ namespace TriInspector.Elements private bool _expanded; [Serializable] - public struct Props + public new struct Props { public string title; public TitleMode titleMode; diff --git a/Unity.InternalAPIEditorBridge.012/ReorderableListProxy.cs b/Unity.InternalAPIEditorBridge.012/ReorderableListProxy.cs index 644c475..c7dd465 100644 --- a/Unity.InternalAPIEditorBridge.012/ReorderableListProxy.cs +++ b/Unity.InternalAPIEditorBridge.012/ReorderableListProxy.cs @@ -63,7 +63,11 @@ namespace TriInspectorUnityInternalBridge public static void DoAddButton(ReorderableList list, Object value) { +#if UNITY_2020_2_OR_NEWER defaultBehaviours.DoAddButton(list, value); +#else + defaultBehaviours.DoAddButton(list); +#endif } } } \ No newline at end of file