By rsjowell
on Thu, 10/15/2020 - 19:31
Hello, my desired behavior is to detect whether or not an object based on a Ground Plane Stage comes back into view of the AR Camera after it has been initially placed and then left the camera's view. I have tried setting the the OnTargetFound() and OnTargetLost() settings of the Event Handler for the stage in question, but the OnTargetFound methods seems to only fire once, even when the object is no longer in view of the camera. Also, when I try to change the "Consider Target As Visible" status to just Tracked, the object won't be placed at all, but when I set it to "Extended Tracked," it works.
Happy to provide specific code methods if needed.
Hi,
Hi,
If I understand your use-case correctly, I would try with raycasting to determine if the GameObject is there or not. You could spawn a GameObject on the left side of the camera and shoot the raycast out of this GameObject.
Hope it helps.
Vuforia Engine Support