Skip to content

Instantly share code, notes, and snippets.

@fcor
Created June 2, 2020 23:25
Show Gist options
  • Select an option

  • Save fcor/be6bc94bd9bf169165280e3a67408069 to your computer and use it in GitHub Desktop.

Select an option

Save fcor/be6bc94bd9bf169165280e3a67408069 to your computer and use it in GitHub Desktop.
Marker Events - AR.js
sceneEl.addEventListener("markerFound", (e) => {
isMarkerVisible = true;
});
sceneEl.addEventListener("markerLost", (e) => {
isMarkerVisible = false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment