android p 以上机型屏幕适配添加
parent
96e795c7c5
commit
d05b5d43f1
|
@ -59,7 +59,7 @@ public class NotchScreenUtil
|
|||
// 获取刘海屏高度
|
||||
public int GetNotchHeight()
|
||||
{
|
||||
int height = 0;
|
||||
int height = -1;
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -76,5 +76,25 @@ public class NotchScreenUtil
|
|||
return height;
|
||||
}
|
||||
|
||||
// 获取刘海屏高度
|
||||
public int GetNotchBottomHeight()
|
||||
{
|
||||
int height = -1;
|
||||
|
||||
try
|
||||
{
|
||||
#if UNITY_IOS
|
||||
height = (int)Mathf.Floor(Convert.ToSingle(m_GetNotchBottomHeight()));
|
||||
#elif UNITY_ANDROID
|
||||
height = jo.CallStatic<int>("getNotchBottomHeight");
|
||||
#endif
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError(e);
|
||||
}
|
||||
return height;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_dntg_cy
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_dntg_qj
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_hcs
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_lhj
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_mrhl
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_schl
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_schl_loop
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_syz
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_syz_loop
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_tgxb_pq
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_tsjl
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_tsjl_loop
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_xyc
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_xytb
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_zd
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/common/ui_zp
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_001
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_002
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_003
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_004
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_005
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_006
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_007
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_008
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_009
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_010
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_011
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_012
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_013
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_014
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_015
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_016
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_017
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_018
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_019
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_020
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_021
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_022
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_023
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_024
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_025
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_026
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_027
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_028
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_029
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_030
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_031
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_032
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_033
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_034
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_035
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_036
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_037
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_038
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_039
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_040
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_041
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_042
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_043
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_044
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_045
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_046
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_047
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_048
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_049
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_050
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_051
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_052
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_053
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_054
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_055
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_056
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_057
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_058
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_059
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_060
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_061
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_062
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_063
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_064
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_065
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -18,5 +18,5 @@ AudioImporter:
|
|||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/audio/ui/voice/audio_guide_story_066
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -106,5 +106,5 @@ TextureImporter:
|
|||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/dynamicatlas/artfont/c_czjj_banner_slogan
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -106,5 +106,5 @@ TextureImporter:
|
|||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/dynamicatlas/artfont/m_meiyuelibao_banner1
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -106,5 +106,5 @@ TextureImporter:
|
|||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/dynamicatlas/artfont/m_meiyuelibao_banner11
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -106,5 +106,5 @@ TextureImporter:
|
|||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/dynamicatlas/artfont/m_meiyuelibao_banner2
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -106,5 +106,5 @@ TextureImporter:
|
|||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
assetBundleName: lz4/dynamicatlas/artfont/m_meiyuelibao_banner22
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
@ -90,17 +90,23 @@ end
|
|||
|
||||
function UIManager.Adapter()
|
||||
local notchHeight = 0
|
||||
local notchBottomHeight = 0
|
||||
if AppConst.isSDK then
|
||||
notchHeight = NotchScreenUtil.Instance:GetNotchHeight()
|
||||
notchBottomHeight = NotchScreenUtil.Instance:GetNotchBottomHeight()
|
||||
Log("********************* 刘海屏的高度是:"..notchHeight)
|
||||
Log("********************* 刘海屏的底部区域高度是:"..notchBottomHeight)
|
||||
--TODO: 这里再配置一套小众的手机的屏幕高度
|
||||
if notchHeight == -1 then
|
||||
--TODO: 这里再配置一套小众的手机的屏幕高度
|
||||
notchHeight = 0
|
||||
end
|
||||
if notchBottomHeight == -1 then
|
||||
notchBottomHeight = 0
|
||||
end
|
||||
end
|
||||
UIManager.Offset = {
|
||||
Top = 48,
|
||||
Bottom = 24,
|
||||
Top = notchHeight,
|
||||
Bottom = notchBottomHeight,
|
||||
Left = 0,
|
||||
Right = 0,
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ public class NotchScreenUtilWrap
|
|||
L.BeginClass(typeof(NotchScreenUtil), typeof(System.Object));
|
||||
L.RegFunction("Init", Init);
|
||||
L.RegFunction("GetNotchHeight", GetNotchHeight);
|
||||
L.RegFunction("GetNotchBottomHeight", GetNotchBottomHeight);
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.RegVar("Instance", get_Instance, null);
|
||||
L.EndClass();
|
||||
|
@ -47,6 +48,23 @@ public class NotchScreenUtilWrap
|
|||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int GetNotchBottomHeight(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 1);
|
||||
NotchScreenUtil obj = (NotchScreenUtil)ToLua.CheckObject<NotchScreenUtil>(L, 1);
|
||||
int o = obj.GetNotchBottomHeight();
|
||||
LuaDLL.lua_pushinteger(L, o);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_Instance(IntPtr L)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue