Unity v2018.4 Support (#98)

* - Fixed MonoHooks asmdef reference to Core asmdef was broken.
- Fixed dependancy issue for Package Manager.
- Removed Generator function in version 2018.4.

* Updated to include 2018.4 define directive.
This commit is contained in:
Low Jiahao 2020-01-24 02:01:31 +07:00 committed by Adam Ramberg
parent b51de335e0
commit d619146076
4 changed files with 8 additions and 7 deletions

View File

@ -9,7 +9,7 @@
"com.mambojambostudios.unity-atoms-ui": "file:../../Packages/UI", "com.mambojambostudios.unity-atoms-ui": "file:../../Packages/UI",
"com.mambojambostudios.unity-atoms-mono-hooks": "file:../../Packages/MonoHooks", "com.mambojambostudios.unity-atoms-mono-hooks": "file:../../Packages/MonoHooks",
"com.neuecc.unirx": "https://github.com/starikcetin/UniRx.git#7.1.0-upm", "com.neuecc.unirx": "https://github.com/starikcetin/UniRx.git#7.1.0-upm",
"com.unity.package-manager-ui": "2.1.2", "com.unity.package-manager-ui": "2.0.8",
"com.unity.modules.animation": "1.0.0", "com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0", "com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0", "com.unity.modules.audio": "1.0.0",

View File

@ -1,4 +1,4 @@
#if UNITY_2019_1_OR_NEWER #if UNITY_2018_4_OR_NEWER
using System.Collections.Generic; using System.Collections.Generic;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
@ -6,7 +6,7 @@ using UnityEngine;
namespace UnityAtoms.Editor namespace UnityAtoms.Editor
{ {
/// <summary> /// <summary>
/// The base Unity Atoms property drawer. Makes it possible to create and add a new Atom via Unity's inspector. Only availble in `UNITY_2019_1_OR_NEWER`. /// The base Unity Atoms property drawer. Makes it possible to create and add a new Atom via Unity's inspector. Only availble in `UNITY_2018_4_OR_NEWER`.
/// </summary> /// </summary>
/// <typeparam name="T">The type of Atom the property drawer should apply to.</typeparam> /// <typeparam name="T">The type of Atom the property drawer should apply to.</typeparam>
public abstract class AtomDrawer<T> : PropertyDrawer where T : ScriptableObject public abstract class AtomDrawer<T> : PropertyDrawer where T : ScriptableObject

View File

@ -1,3 +1,4 @@
#if UNITY_2019_1_OR_NEWER
using System; using System;
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
@ -110,3 +111,4 @@ namespace UnityAtoms.Editor
} }
} }
#endif

View File

@ -1,7 +1,7 @@
{ {
"name": "MamboJamboStudios.UnityAtomsMonoHooks.Runtime", "name": "MamboJamboStudios.UnityAtomsMonoHooks.Runtime",
"references": [ "references": [
"GUID:14165214884ae4a619bfb290f28194a7" "MamboJamboStudios.UnityAtomsCore.Runtime"
], ],
"optionalUnityReferences": [], "optionalUnityReferences": [],
"includePlatforms": [], "includePlatforms": [],
@ -10,6 +10,5 @@
"overrideReferences": false, "overrideReferences": false,
"precompiledReferences": [], "precompiledReferences": [],
"autoReferenced": true, "autoReferenced": true,
"defineConstraints": [], "defineConstraints": []
"versionDefines": []
} }