神奇的iPhoneX,让很多游戏开发者,很困扰,很多人想开启边缘保护,可是Unity5.4.1是没有新版本的保护设置
iOS player settings->Other Settings->Defer system gestures on edges.
https://issuetracker.unity3d.com/issues/ios-notification-centre-slash-control-center-appears-after-one-swipe-instead-of-two-swipes-on-ios11-device
研究后,需要修改UnityViewControllerBase.mm
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures{
return UIRectEdgeAll;
}
image.png
网友评论