有什么方法可以禁用实时摄像头馈送并将自定义视频作为 ARSession 中的输入传递?我想通过代码实现Record & Replay ARSession。
问问题
125 次
1 回答
1
你去吧:)
var originalSource: if originalSource == nil || scene.background.contents as? UIColor != UIColor.black
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
if originalSource == nil {
originalSource = sceneView.scene.background.contents
sceneView.scene.background.contents = UIColor.black
} else {
sceneView.scene.background.contents = originalSource
}
}
于 2021-10-25T19:40:27.857 回答