You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On pause result was find, the camera still going and stop scanning, but targetLost event never calling. If i remove the pause function, both are calling perfectly.
constmodelTarget=document.querySelector("#my-ar");modelTarget.addEventListener("targetFound",(event)=>{console.log("TARGET FOUND");arSystem.pause(true);// pause AR, keep video});modelTarget.addEventListener("targetLost",(event)=>{console.log("TARGET LOST");arSystem.unpause();// unpause AR and video});
The text was updated successfully, but these errors were encountered:
I think that's what the arSystem.pause() does. Since it's paused, it's not going to detect if a target was lost because it's not actively detecting anything at the moment.
On pause result was find, the camera still going and stop scanning, but targetLost event never calling. If i remove the pause function, both are calling perfectly.
The text was updated successfully, but these errors were encountered: