mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
Fix errors when installing in TriInspector in Unity <= 2020.1 (#143)
This commit is contained in:
parent
0e23ca4a42
commit
e825652e45
@ -1,8 +1,13 @@
|
|||||||
using TriInspectorUnityInternalBridge;
|
using TriInspectorUnityInternalBridge;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEditor.AssetImporters;
|
|
||||||
using UnityEngine.UIElements;
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
|
#if UNITY_2020_2_OR_NEWER
|
||||||
|
using UnityEditor.AssetImporters;
|
||||||
|
#else
|
||||||
|
using UnityEditor.Experimental.AssetImporters;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace TriInspector.Editors
|
namespace TriInspector.Editors
|
||||||
{
|
{
|
||||||
[CanEditMultipleObjects]
|
[CanEditMultipleObjects]
|
||||||
|
@ -18,7 +18,7 @@ namespace TriInspector.Elements
|
|||||||
private bool _expanded;
|
private bool _expanded;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public struct Props
|
public new struct Props
|
||||||
{
|
{
|
||||||
public string title;
|
public string title;
|
||||||
public TitleMode titleMode;
|
public TitleMode titleMode;
|
||||||
|
@ -63,7 +63,11 @@ namespace TriInspectorUnityInternalBridge
|
|||||||
|
|
||||||
public static void DoAddButton(ReorderableList list, Object value)
|
public static void DoAddButton(ReorderableList list, Object value)
|
||||||
{
|
{
|
||||||
|
#if UNITY_2020_2_OR_NEWER
|
||||||
defaultBehaviours.DoAddButton(list, value);
|
defaultBehaviours.DoAddButton(list, value);
|
||||||
|
#else
|
||||||
|
defaultBehaviours.DoAddButton(list);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user