Open hohler opened 7 months ago
Hello Miquido Team
I noticed that with multiple images, every image is only detected once.
Example: I have 2 images
I found a easy fix, maybe this is already the right way.
Replace
class ARQuidoViewController: UIViewController { ... if let nodeToRemove = detectedImageNode { nodeToRemove.removeFromParentNode() } ... }
with
private var lastImageAnchor: ARImageAnchor? ... class ARQuidoViewController: UIViewController { ... if let nodeToRemove = detectedImageNode { nodeToRemove.removeFromParentNode() if (lastImageAnchor != nil) { sceneView.session.remove(anchor: lastImageAnchor!) } } ... }
Hello @hohler!
Looks good - would you mind creating a PR for it?
Hello Miquido Team
I noticed that with multiple images, every image is only detected once.
Example: I have 2 images
I found a easy fix, maybe this is already the right way.
Replace
with