diff --git a/Utilities/PlatformUtility.cs b/Utilities/PlatformUtility.cs index b785dfbe1..cc1ba50de 100644 --- a/Utilities/PlatformUtility.cs +++ b/Utilities/PlatformUtility.cs @@ -74,7 +74,7 @@ private static bool IsPlatformSupported(SupportedPlatforms target, SupportedPlat public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildTarget, SupportedPlatforms platforms) { var target = GetSupportedPlatformMask(editorBuildTarget); - return IsPlatformSupported(target, platforms); + return platforms != 0 && IsPlatformSupported(target, platforms); } private static SupportedPlatforms GetSupportedPlatformMask(UnityEditor.BuildTarget editorBuildTarget)