diff --git a/Editor/Agoxandr.Utils.Editor.asmdef b/Editor/Agoxandr.Utils.Editor.asmdef index 3461d9e..b4fa70c 100644 --- a/Editor/Agoxandr.Utils.Editor.asmdef +++ b/Editor/Agoxandr.Utils.Editor.asmdef @@ -13,6 +13,12 @@ "precompiledReferences": [], "autoReferenced": true, "defineConstraints": [], - "versionDefines": [], + "versionDefines": [ + { + "name": "com.unity.modules.physics", + "expression": "", + "define": "COM_UNITY_MODULES_PHYSICS" + } + ], "noEngineReferences": false } \ No newline at end of file diff --git a/Editor/ReflectionProbeVolumeEditor.cs b/Editor/ReflectionProbeVolumeEditor.cs index 308c904..7652c2b 100644 --- a/Editor/ReflectionProbeVolumeEditor.cs +++ b/Editor/ReflectionProbeVolumeEditor.cs @@ -1,3 +1,4 @@ +#if COM_UNITY_MODULES_PHYSICS using UnityEditor; using UnityEngine; @@ -166,3 +167,4 @@ namespace Utils } } } +#endif diff --git a/Runtime/Agoxandr.Utils.asmdef b/Runtime/Agoxandr.Utils.asmdef index c63949c..f15a942 100644 --- a/Runtime/Agoxandr.Utils.asmdef +++ b/Runtime/Agoxandr.Utils.asmdef @@ -9,6 +9,12 @@ "precompiledReferences": [], "autoReferenced": true, "defineConstraints": [], - "versionDefines": [], + "versionDefines": [ + { + "name": "com.unity.modules.physics", + "expression": "", + "define": "COM_UNITY_MODULES_PHYSICS" + } + ], "noEngineReferences": false } \ No newline at end of file diff --git a/Runtime/ReflectionProbeVolume.cs b/Runtime/ReflectionProbeVolume.cs index 64a7cc7..18cc6d7 100644 --- a/Runtime/ReflectionProbeVolume.cs +++ b/Runtime/ReflectionProbeVolume.cs @@ -1,3 +1,4 @@ +#if COM_UNITY_MODULES_PHYSICS using System.Diagnostics; using UnityEngine; @@ -106,3 +107,4 @@ namespace Utils } } } +#endif diff --git a/package.json b/package.json index f2d54ee..e1a6dbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ru.shazbot.utils", - "version": "3.1.0", + "version": "3.1.1", "displayName": "Utils", "description": "Utility useful for almost any project.", "licensesUrl": "https://git.shazbot.ru/Utils.git/tree/LICENSE.md", @@ -12,7 +12,5 @@ "email": "alexander@shazbot.ru", "url": "https://shazbot.ru/" }, - "dependencies": { - "com.unity.modules.physics": "1.0.0" - } + "dependencies": { } } \ No newline at end of file