Skip to content

Instantly share code, notes, and snippets.

@makelivedotnet
Created July 13, 2015 18:09
Show Gist options
  • Save makelivedotnet/133fd91ce66c7a0268ee to your computer and use it in GitHub Desktop.
Save makelivedotnet/133fd91ce66c7a0268ee to your computer and use it in GitHub Desktop.
appear function
appear: function appearFn() {
World.trackableVisible = true;
document.getElementById('bottom').innerHTML = "<div>world trackable</div>";
if (World.loaded) {
document.getElementById('left').innerHTML = "<div>start animation</div>";
World.appearingAnimation.start();
}
},
appearProcessDetection: function appearProcessDetectionFn(which) {
World.trackableVisible = true;
document.getElementById('bottom').innerHTML = "<div>world trackable</div>";
if (World.loaded) {
document.getElementById('left').innerHTML = "<div>start animation</div>";
World.appearingAnimation.start();
}
document.getElementById('loadingMessage').innerHTML = "Detected..." + which;
// // wait a little
// setTimeout(function() {
// // tell the document you want to close AR
// document.location = 'architectsdk://action=closeWikitudePlugin';
// }, 9000);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment