Hi, following the recent deprecation of SceneKit, I'm trying to move a couple of my SceneKit projects to RealityKit.
One thing I can't seem to find is how to change the content scale factor when using a RealityView in SwiftUI. It was really easy to do in SceneKit with just a SCNView property, and it seems that it's also possible when using ARView, but I can't find a way to do it with a RealityView. Maybe it's a SwiftUI limitation?
@Maiq thank you for clarifying your use case for game optimization.
There are two things you can try as a workaround:
-
Set the displayScale value for the SwiftUI view hierarchy. See EnvironmentValues.
-
Use RealityRenderer to control output resolution.