我在场景编辑中编辑。第一场景没有问题(场景包含一层楼)。但是当我使用sceneView.present
一个新的SCNScene(它只包含一个foor)崩溃。SceneKit add floor crash
原因:
validateAttachmentOnDevice:313: failed assertion `MTLRenderPassDescriptor
MTLStoreActionMultisampleResolve store action for the depth attachment is not
supported by device'
func startGame() {
let transition = SKTransition.doorsOpenVertical(withDuration: 1)
sceneView.present(TestScene().scene, with: transition, incomingPointOfView: nil) {
}
}
class TestScene : NSObject {
var scene = Assets.scene(named: "scene_2.scn")
override init() {
super.init()
}
}
查找原因。所有关于ARKit,但我不使用它。 –
用飞机替换地板 –
将SCNView的抗锯齿模式更改为.multisampling4X –