TapCommon-Unity/Editor/BuildTargetUtils.cs

14 lines
455 B
C#
Raw Normal View History

2023-03-20 14:37:10 +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;
}
}
}