We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7686dbe commit 47877e7Copy full SHA for 47877e7
Runtime/Util/GeneratedUnityObjectCache.cs
@@ -1,4 +1,8 @@
1
-namespace GenericUnityObjects.Util
+#if (UNITY_EDITOR || UNITY_STANDALONE) && !ENABLE_IL2CPP && !NET_STANDARD_2_0
2
+#define CAN_EMIT
3
+#endif
4
+
5
+namespace GenericUnityObjects.Util
6
{
7
using System;
8
using System.Collections.Generic;
@@ -8,7 +12,7 @@
12
using System.Reflection;
9
13
using UnityEngine.Assertions;
10
14
11
-#if ! ENABLE_IL2CPP
15
+#if CAN_EMIT
16
using System.Reflection.Emit;
17
#endif
18
@@ -30,7 +34,7 @@ private class CacheImplementation
30
34
31
35
public Type GetClass(Type genericTypeWithArgs)
32
36
33
-#if ENABLE_IL2CPP
37
+#if !CAN_EMIT
38
return null;
39
}
40
#else
0 commit comments