SceneKit 不会在 Xcode 12 中填满屏幕 [英] SceneKit Will not fill the screen in Xcode 12
问题描述
我正在尝试使用 SceneKit 进行练习并制作 IOS 游戏.在 Xcode 12 Beta 5 中,但无论我做什么,SceneView 都不会填满屏幕,这是使用 SceneKit 启动游戏时的默认代码.当我使用 Xcode 11 时,它会填满屏幕,但我无法在 Xcode 11 中打开 sin 文件.
I am trying to make practice with SceneKit and making IOS games. In Xcode 12 Beta 5, but the SceneView will not fill up the screen no matter what I do, this with the default code when starting a game with SceneKit. When I use Xcode 11 it fills up the screen, but I am unable to open sin files in Xcode 11.
推荐答案
我能够通过添加启动屏幕故事板并将其添加到 plist 来解决该问题,您还可以将主故事板添加为启动屏幕.
I was able to fix the issue by adding a Launch screen storyboard and adding it to the plist, you can also add your main storyboard as the launch screen.
解决此问题的最佳方法是选择您的项目,然后在 General->App 图标和启动图像->Launch Screen File = Main
The best way to fix this is select your project and under General->App icons and launch images->Launch Screen File = Main
这篇关于SceneKit 不会在 Xcode 12 中填满屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!