UNITY C# 根据宏判断当前设备环境
代码
public static string GetMobileDevicesType()
{
#if UNITY_ANDROID
return "android";
#endif
#if UNITY_IOS
return "ios";
#endif
return "other";
}
UNITY C# 根据宏判断当前设备环境
代码
public static string GetMobileDevicesType()
{
#if UNITY_ANDROID
return "android";
#endif
#if UNITY_IOS
return "ios";
#endif
return "other";
}