RealityKit, Attachments - not working

I am trying the simplest use of attachment in realityKit and get Contextual closure type @MainActor, @Sendable (inout RealityViewCameraContent) async -> void expects 1 argument, but 2 were used in closure body.

Also i get cannot find Attachment in scope

Hi @BrianMcDonald

RealityKit attachments are only available in visionOS.

Feel free to follow up here if you have further questions.

Thanks!

RealityKit, Attachments - not working
 
 
Q