Content inside volume gets clipped

I am using the Xcode visionOS debugging tool to visualize the bounds of all the containers, but it shows my Entity is inside the Volume. Then why does it get clipped? Is there something wrong with the debugger, or am I missing something?

import SwiftUI

@main
struct RealityViewAttachmentApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
        .windowStyle(.volumetric)
        .defaultSize(Size3D(width: 1, height: 1, depth: 1), in: .meters)
    }
}


import SwiftUI
import RealityKit
import RealityKitContent

struct ContentView: View {
    var body: some View {
        RealityView { content, attachments in
            if let earth = try? await Entity(named: "Scene", in: realityKitContentBundle) {
                content.add(earth)
                if let earthAttachment = attachments.entity(for: "earth_label") {
                    earthAttachment.position = [0, -0.15, 0]
                    earth.addChild(earthAttachment)
                }
                if let textAttachment = attachments.entity(for: "text_label") {
                    textAttachment.position = [-0.5, 0, 0]
                    earth.addChild(textAttachment)
                }
            }
            
        } attachments: {
            Attachment(id: "earth_label") {
                Text("Earth")
            }
            
            Attachment(id: "text_label") {
                VStack {
                    Text("This is just an example")
                        .font(.title)
                        .padding(.bottom, 20)
                    Text("This is just some random content")
                        .font(.caption)
                }
                    .frame(minWidth: 100, maxWidth: 300, minHeight: 100, maxHeight: 300)
                    .glassBackgroundEffect()
                
            }
        }

    }
}

Hi @WeAreAllSatoshi ,

Thanks so much for posting the picture & the code! Testing this out on-device, I see that the bounds look correct and are in fact clipping the attachment as-expected. If you're using visionOS 2.0 here, the baseplate will show and is the size of the volume up to where the attachment is being clipped.

Would you mind submitting a feedback report about the debugger at https://feedbackassistant.apple.com and posting the FB number here so that I can make sure it lands with the right folks? This looks like something we can check on, and this way you'll be able to hear back directly through there.

Thanks!

Sydney

Content inside volume gets clipped
 
 
Q