简体   繁体   English

上面的黑条 iPhone X。 如何摆脱?

[英]Black bars iPhone X above. How to get rid of?

I'm having trouble with these strange black bars on the edges of iPhone X devices and higher.我在 iPhone X 设备及更高设备边缘出现这些奇怪的黑条时遇到了问题。 They will fade in and out weirdly with the camera and mess up my UI layout.它们会随着相机奇怪地淡入淡出,并弄乱我的 UI 布局。 Any suggestions for how to fix this?有关如何解决此问题的任何建议? I am using the Unity game engine to create the game.我正在使用 Unity 游戏引擎来创建游戏。 Video with demonstration linked below: youtu.be/FFZe--izo_k演示视频链接如下:youtu.be/FFZe--izo_k

It could be because the animation is messing up the ui.这可能是因为 animation 弄乱了用户界面。 Do you have any code that you think is related to that issue?您是否有任何您认为与该问题相关的代码? If so, please edit your post with the code.如果是这样,请使用代码编辑您的帖子。 Until then I can't help you.在那之前我帮不了你。 One other issue that might be that something is messing up the camera.另一个问题可能是某些东西弄乱了相机。 Hope this helps in some way: :D希望这在某种程度上有所帮助::D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM