浏览代码

Merge branch 'master' into double_to_float

/main
Yuncong Zhang 6 年前
当前提交
d59bcfb9
共有 1 个文件被更改,包括 8 次插入6 次删除
  1. 14
      Runtime/engine/DisplayMetrics.cs

14
Runtime/engine/DisplayMetrics.cs


return _devicePixelRatio;
}
#if UNITY_ANDROID
#if UNITY_ANDROID
#if UNITY_WEBGL
#if UNITY_WEBGL
#if UNITY_IOS
#if UNITY_IOS
_devicePixelRatio = IOSDeviceSaleFactor();
#endif

return _devicePixelRatio;
}
#if UNITY_ANDROID
#if UNITY_ANDROID
static float AndroidDevicePixelRatio() {
using (
AndroidJavaClass unityPlayerClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")

[DllImport("__Internal")]
static extern int IOSDeviceSaleFactor();
#endif
}
}
正在加载...
取消
保存