Skip to content

Commit 3dd0b6a

Browse files
committed
Restric ReferencePicker to Unity 2019.3 or higher
1 parent 00a26d2 commit 3dd0b6a

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Assets/Editor Toolbox/Editor/Drawers/Toolbox/PropertySelf/ReferencePickerAttributeDrawer.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if UNITY_2019_3_OR_NEWER
2+
using System;
23

34
using UnityEditor;
45
using UnityEngine;
@@ -77,4 +78,5 @@ public override bool IsPropertyValid(SerializedProperty property)
7778
return property.propertyType == SerializedPropertyType.ManagedReference;
7879
}
7980
}
80-
}
81+
}
82+
#endif

Assets/Editor Toolbox/Scripts/Attributes/Toolbox/PropertySelfAttributes/ReferencePickerAttribute.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
#if UNITY_2019_3_OR_NEWER
2+
using System;
23
using System.Diagnostics;
34

45
namespace UnityEngine
@@ -12,4 +13,5 @@ namespace UnityEngine
1213
[Conditional("UNITY_EDITOR")]
1314
public class ReferencePickerAttribute : ToolboxSelfPropertyAttribute
1415
{ }
15-
}
16+
}
17+
#endif

0 commit comments

Comments
 (0)