Log in or register to post comments

Detect whether or not object already placed in world becomes visible once again

October 15, 2020 - 12:31pm #1

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.

Detect whether or not object already placed in world becomes visible once again

November 4, 2020 - 1:36am #2

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

Log in or register to post comments