diff --git a/Assets/LuaFramework/Scripts/SDK/Tools/NotchScreenUtil.cs b/Assets/LuaFramework/Scripts/SDK/Tools/NotchScreenUtil.cs index a1eacaa179..0898d7d068 100644 --- a/Assets/LuaFramework/Scripts/SDK/Tools/NotchScreenUtil.cs +++ b/Assets/LuaFramework/Scripts/SDK/Tools/NotchScreenUtil.cs @@ -64,7 +64,7 @@ public class NotchScreenUtil try { #if UNITY_IOS - height = Mathf.Floor(Convert.ToSingle(m_GetNotchHeight())); + height = (int)Mathf.Floor(Convert.ToSingle(m_GetNotchHeight())); #elif UNITY_ANDROID height = jo.CallStatic("getNotchHeight"); #endif