RealityKit – arView.scene add AnchorEntity

Apple Document: Stored Entities

My another question: RealityKit – Stored Entities & Load the Scene Aynchronously from the URL

My function result return a (Entity & HasAnchoring)

My question is…How to show the AnchorEntity.(self.arView.scene.addAnchor??)

I’m new here.Thanks

Add Comment
1 Answer(s)

After you have loaded the AnchorEntity you can add it to the scene like this:


And that should be it. For instance if you set horizontal plane anchoring when you created the project in RealityComposer, then it should place your AnchorEntity once you detect a horizontal plane

Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.