我在場景編輯中編輯。第一場景沒有問題(場景包含一層樓)。但是當我使用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 –