Skip to content

Commit 97d028e

Browse files
committed
Remove UNITY_2019_3_OR_NEWER directive
1 parent 8f4e361 commit 97d028e

12 files changed

+20
-46
lines changed

Assets/Example/Example.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if UNITY_2019_3_OR_NEWER
21
using System.Collections.Generic;
32
using System;
43
using UnityEditor;
@@ -126,6 +125,4 @@ public override float GetPropertyHeight (SerializedProperty property, GUIContent
126125
return EditorGUIUtility.singleLineHeight;
127126
}
128127
}
129-
#endif
130-
131128
#endif

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/AdvancedTypePopup.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System;
1+
using System;
32
using System.Linq;
43
using System.Collections.Generic;
54
using UnityEngine;
@@ -137,5 +136,4 @@ protected override void ItemSelected (AdvancedDropdownItem item) {
137136
}
138137

139138
}
140-
}
141-
#endif
139+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/MackySoft.SerializeReferenceExtensions.Editor.asmdef

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"overrideReferences": false,
1313
"precompiledReferences": [],
1414
"autoReferenced": true,
15-
"defineConstraints": [
16-
"UNITY_2019_3_OR_NEWER"
17-
],
15+
"defineConstraints": [],
1816
"versionDefines": [],
1917
"noEngineReferences": false
2018
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/ManagedReferenceUtility.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System;
1+
using System;
32
using System.Reflection;
43
using UnityEditor;
54
using UnityEngine;
@@ -44,5 +43,4 @@ public static Type GetType (string typeName) {
4443
}
4544

4645
}
47-
}
48-
#endif
46+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/PropertyDrawerCache.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using UnityEditor;
54
using System.Reflection;
@@ -78,5 +77,4 @@ static Type GetCustomPropertyDrawerType (Type type)
7877
}
7978

8079
}
81-
}
82-
#endif
80+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SerializedPropertyExtensions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System.Collections.Generic;
1+
using System.Collections.Generic;
32
using UnityEditor;
43

54
namespace MackySoft.SerializeReferenceExtensions.Editor
@@ -27,5 +26,4 @@ public static IEnumerable<SerializedProperty> GetChildProperties (this Serialize
2726
}
2827
}
2928
}
30-
}
31-
#endif
29+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System;
1+
using System;
32
using System.Linq;
43
using System.Collections.Generic;
54
using UnityEngine;
@@ -198,5 +197,4 @@ public override float GetPropertyHeight (SerializedProperty property,GUIContent
198197
}
199198

200199
}
201-
}
202-
#endif
200+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/TypeMenuUtility.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System;
1+
using System;
32
using System.Linq;
43
using System.Collections.Generic;
54
using UnityEditor;
@@ -55,5 +54,4 @@ public static IEnumerable<Type> OrderByType (this IEnumerable<Type> source) {
5554
}
5655

5756
}
58-
}
59-
#endif
57+
}

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Runtime/AddTypeMenuAttribute.cs

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

53
/// <summary>
64
/// An attribute that overrides the name of the type displayed in the SubclassSelector popup.
@@ -34,5 +32,4 @@ public string GetTypeNameWithoutPath () {
3432
return (splittedDisplayName.Length != 0) ? splittedDisplayName[splittedDisplayName.Length - 1] : null;
3533
}
3634

37-
}
38-
#endif
35+
}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
#if UNITY_2019_3_OR_NEWER
2-
using System;
1+
using System;
32

43
/// <summary>
54
/// An attribute that hides the type in the SubclassSelector.
65
/// </summary>
76
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
87
public sealed class HideInTypeMenuAttribute : Attribute {
98

10-
}
11-
#endif
9+
}

0 commit comments

Comments
 (0)