Skip to content

Commit b0e75b6

Browse files
committed
fix: Enclose the ReflectionUtility class definition in a compile conditional to guarantee it only is defined in the context of the Unity Editor being active.
1 parent e97cc92 commit b0e75b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.playeveryware.eos/Runtime/Core/Common/Utility/ReflectionUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222

2323
namespace PlayEveryWare.Common.Utility
2424
{
25+
#if UNITY_EDITOR
2526
using System.Collections.Generic;
2627
using System;
2728
using System.Linq;
2829
using System.Reflection;
29-
using PlayEveryWare.EpicOnlineServices;
3030
using System.Runtime.CompilerServices;
3131

3232
public static class ReflectionUtility
@@ -85,6 +85,6 @@ public static List<object> CreateInstancesOfDerivedGenericClasses(Type genericBa
8585

8686
return instances;
8787
}
88-
8988
}
89+
#endif
9090
}

0 commit comments

Comments
 (0)