mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -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 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]
|
||||
|
@ -18,7 +18,7 @@ namespace TriInspector.Elements
|
||||
private bool _expanded;
|
||||
|
||||
[Serializable]
|
||||
public struct Props
|
||||
public new struct Props
|
||||
{
|
||||
public string title;
|
||||
public TitleMode titleMode;
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user