Hi everyone,
I'm choosing a framework for developing a game that doesn't involve augmented reality (AR) and I'm unsure whether to use SceneKit or RealityKit. I would like to hear from Apple engineers on this matter. Which of these frameworks is better suited for creating non-AR games?
Additionally, I'd like to know if it's possible to disable AR in RealityKit using the updated RealityView? Thanks in advance for your insights and recommendations!
Hi again everyone,
I searched through the documentation and found that the content in RealityView can be of type RealityViewContent for visionOS or RealityViewCameraContent for iOS and macOS. The latter has a camera property that can be set to virtual. Here's the code I came up with.
import SwiftUI
import RealityKit
struct ContentView: View {
var body: some View {
RealityView { content in
content.camera = .virtual
}
}
}
This sets the camera mode to virtual, which I believe should disable AR features. However, since this is a beta version and the documentation isn't entirely clear, I’m not completely sure if this is the right solution, so please don't rely solely on my code.
Thanks again everyone!