刘海高度通过jsb.device.getSafeAreaEdge,获取不准确
Creator 3.x
kevin34
(kevin_cocos)
2022年09月9日 03:14
#1
Android 非刘海屏手机获取到的安全区域差很多
image
722×1532 155 KB
image
1384×352 105 KB
(view.getVisibleSize().height - sys.getSafeAreaRect().height) / 2 = 171;
jsb.device.getSafeAreaEdge().x = 171。