Skip to content

Commit

Permalink
Merge pull request #73 from mackysoft/fix/remove-directive-2019-3
Browse files Browse the repository at this point in the history
Remove UNITY_2019_3_OR_NEWER directive
  • Loading branch information
mackysoft authored Oct 26, 2024
2 parents 9df6eae + 6d39db1 commit d9bc193
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 45 deletions.
3 changes: 0 additions & 3 deletions Assets/Example/Example.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if UNITY_2019_3_OR_NEWER
using System.Collections.Generic;
using System;
using UnityEditor;
Expand Down Expand Up @@ -126,6 +125,4 @@ public override float GetPropertyHeight (SerializedProperty property, GUIContent
return EditorGUIUtility.singleLineHeight;
}
}
#endif

#endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
Expand Down Expand Up @@ -137,5 +136,4 @@ protected override void ItemSelected (AdvancedDropdownItem item) {
}

}
}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [
"UNITY_2019_3_OR_NEWER"
],
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
Expand Down Expand Up @@ -44,5 +43,4 @@ public static Type GetType (string typeName) {
}

}
}
#endif
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;
using System.Collections.Generic;
using UnityEditor;
using System.Reflection;
Expand Down Expand Up @@ -78,5 +77,4 @@ static Type GetCustomPropertyDrawerType (Type type)
}

}
}
#endif
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System.Collections.Generic;
using System.Collections.Generic;
using UnityEditor;

namespace MackySoft.SerializeReferenceExtensions.Editor
Expand Down Expand Up @@ -27,5 +26,4 @@ public static IEnumerable<SerializedProperty> GetChildProperties (this Serialize
}
}
}
}
#endif
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
Expand Down Expand Up @@ -199,4 +198,3 @@ public override float GetPropertyHeight (SerializedProperty property,GUIContent

}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;
using System.Linq;
using System.Collections.Generic;
using UnityEditor;
Expand Down Expand Up @@ -55,5 +54,4 @@ public static IEnumerable<Type> OrderByType (this IEnumerable<Type> source) {
}

}
}
#endif
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#if UNITY_2019_3_OR_NEWER

using System;
using System;

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

}
#endif
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;

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

}
#endif
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [
"UNITY_2019_3_OR_NEWER"
],
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if UNITY_2019_3_OR_NEWER
using System;
using System;
using UnityEngine;

/// <summary>
Expand All @@ -8,5 +7,4 @@
[AttributeUsage(AttributeTargets.Field,AllowMultiple = false)]
public sealed class SubclassSelectorAttribute : PropertyAttribute {

}
#endif
}

0 comments on commit d9bc193

Please sign in to comment.