ios添加获取底部高度的接口

gaoxin 2020-09-10 20:20:19 +08:00
parent 857e255001
commit 17f241564f
1 changed files with 4 additions and 2 deletions

View File

@ -29,9 +29,11 @@ public class NotchScreenUtil
//初始化 //初始化
[DllImport("__Internal")] [DllImport("__Internal")]
private static extern string m_GetNotchHeight(); private static extern string m_GetNotchHeight();
[DllImport("__Internal")]
private static extern string m_GetNotchBottomHeight();
#endif #endif
private NotchScreenUtil() private NotchScreenUtil()
{ {
#if UNITY_IOS #if UNITY_IOS