Skip to content

Commit dd91e00

Browse files
committed
Fixed compile error with WSA
1 parent d42c54b commit dd91e00

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

UnityProject/Assets/Plugins/Zenject/Source/Util/TypeAnalyzer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
using ModestTree;
77
using Zenject.Internal;
88

9-
#if !NOT_UNITY3D
10-
#endif
11-
129
namespace Zenject
1310
{
1411
public delegate InjectTypeInfo ZenTypeInfoGetter();
@@ -79,7 +76,11 @@ static bool ShouldAllowDuringValidationInternal(Type type)
7976
}
8077
#endif
8178

79+
#if UNITY_WSA && ENABLE_DOTNET && !UNITY_EDITOR
80+
return type.GetTypeInfo().GetCustomAttribute<ZenjectAllowDuringValidationAttribute>() != null;
81+
#else
8282
return type.HasAttribute<ZenjectAllowDuringValidationAttribute>();
83+
#endif
8384
}
8485

8586
public static bool HasInfo<T>()

0 commit comments

Comments
 (0)