TapCommon-Unity/Editor/BuildTargetUtils.cs

15 lines
518 B
C#
Raw Permalink Normal View History

2023-10-13 20:33:37 +08:00
using UnityEditor;
namespace TapTap.Common.Editor {
public static class BuildTargetUtils {
public static bool IsSupportMobile(BuildTarget platform) {
return platform == BuildTarget.iOS || platform == BuildTarget.Android;
}
public static bool IsSupportStandalone(BuildTarget platform) {
return platform == BuildTarget.StandaloneOSX ||
platform == BuildTarget.StandaloneWindows || platform == BuildTarget.StandaloneWindows64;
}
}
}