diff --git a/webgl_example/Build/markerbasedarexample.data.unityweb b/webgl_example/Build/markerbasedarexample.data.unityweb index d1964d0..de95d74 100644 Binary files a/webgl_example/Build/markerbasedarexample.data.unityweb and b/webgl_example/Build/markerbasedarexample.data.unityweb differ diff --git a/webgl_example/Build/markerbasedarexample.framework.js.unityweb b/webgl_example/Build/markerbasedarexample.framework.js.unityweb index bd28f88..e60d535 100644 Binary files a/webgl_example/Build/markerbasedarexample.framework.js.unityweb and b/webgl_example/Build/markerbasedarexample.framework.js.unityweb differ diff --git a/webgl_example/Build/markerbasedarexample.loader.js b/webgl_example/Build/markerbasedarexample.loader.js index 2817e22..296db6b 100644 --- a/webgl_example/Build/markerbasedarexample.loader.js +++ b/webgl_example/Build/markerbasedarexample.loader.js @@ -1 +1 @@ -function createUnityInstance(n,t,d){function f(e,n){if(!f.aborted&&t.showBanner)return"error"==n&&(f.aborted=!0),t.showBanner(e,n);switch(n){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var n=e.reason||e.error,t=n?n.toString():e.message||e.reason||"",r=n&&n.stack?n.stack.toString():"";(t+="\n"+(r=r.startsWith(t)?r.substring(t.length):r).trim())&&p.stackTraceRegExp&&p.stackTraceRegExp.test(t)&&w(t,e.filename||n&&(n.fileName||n.sourceURL)||"",e.lineno||n&&(n.lineNumber||n.line)||0)}function e(e,n,t){var r=e[n];void 0!==r&&r||(console.warn('Config option "'+n+'" is missing or empty. Falling back to default value: "'+t+'". Consider updating your WebGL template to include the missing config option.'),e[n]=t)}d=d||function(){};var o,p={canvas:n,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},wasmFileSize:24605159,streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,n){e=window.setInterval(e,n);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?f('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+p.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):f('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+p.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(t,"companyName","Unity"),e(t,"productName","WebGL Player"),e(t,"productVersion","1.0"),t)p[o]=t[o];p.streamingAssetsUrl=new URL(p.streamingAssetsUrl,document.URL).href;var i=p.disabledCanvasEvents.slice();function s(e){e.preventDefault()}i.forEach(function(e){n.addEventListener(e,s)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var a="",l="";function u(e){document.webkitCurrentFullScreenElement===n?n.style.width&&(a=n.style.width,l=n.style.height,n.style.width="100%",n.style.height="100%"):a&&(n.style.width=a,n.style.height=l,l=a="")}document.addEventListener("webkitfullscreenchange",u),p.deinitializers.push(function(){for(var e in p.disableAccessToMediaDevices(),i.forEach(function(e){n.removeEventListener(e,s)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",u),p.intervals)window.clearInterval(e);p.intervals={}}),p.QuitCleanup=function(){for(var e=0;e
>>P.bit_pos_,P.bit_pos_+=8,++A,--E;if(k+(y=P.bit_end_pos_-P.bit_pos_>>3)>he.IBUF_MASK){for(var re=he.IBUF_MASK+1-k,U=0;U>18&63]+d[n>>12&63]+d[n>>6&63]+d[63&n]);return r.join("")}(e,s>2])+d[t<<4&63]+"=="):2==r&&(t=(e[n-2]<<8)+e[n-1],o=(o=(o+=d[t>>10])+d[t>>4&63])+d[t<<2&63]+"="),i.push(o),i.join("")};for(var d=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o>3);if(commentOffset=1+n+2+1+2+(o<<3)+7>>3,17==r||commentOffset>e.length)return!1;for(var i=r+(6+(o<<4)+(t.length-1<<6)<
If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See https://bugzilla.mozilla.org/show_bug.cgi?id=1670675 for more information.':"Unable to parse "+w.frameworkUrl+'!
If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void c(n,"error"))}c("Unable to parse "+w.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,a.onload=null,URL.revokeObjectURL(s),i(o)},a.onerror=function(e){c("Unable to load file "+w.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(a),w.deinitializers.push(function(){document.body.removeChild(a)})})}),R("codeUrl")]).then(function(e){w.wasmBinary=e[1],e[0](w),w.codeDownloadTimeEnd=performance.now()-t}),performance.now()),e=R("dataUrl");w.preRun.push(function(){w.addRunDependency("dataUrl"),e.then(function(t){var e=new TextDecoder("utf-8"),n=0;function r(){var e=(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0;return n+=4,e}function o(e){if(k.gzip.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still gzip-compressed and should have been uncompressed by the browser. Web server has likely provided gzip-compressed data without specifying the HTTP Response Header "Content-Encoding: gzip" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';if(k.br.hasUnityMarker(t))throw e+'. Failed to parse binary data file, because it is still brotli-compressed and should have been uncompressed by the browser. Web server has likely provided brotli-compressed data without specifying the HTTP Response Header "Content-Encoding: br" with it to instruct the browser to decompress it. Please verify your web server hosting configuration.';throw e}var i="UnityWebData1.0\0",a=e.decode(t.subarray(0,i.length)),s=(a!=i&&o('Unknown data format (id="'+a+'")'),n+=i.length,r());for(n+s>t.length&&o("Invalid binary data file header! (pos="+n+", headerSize="+s+", file length="+t.length+")");nt.length&&o("Invalid binary data file size! (offset="+d+", size="+c+", file length="+t.length+")"),r()),l=(n+u>t.length&&o("Invalid binary data file path name! (pos="+n+", length="+u+", file length="+t.length+")"),e.decode(t.subarray(n,n+u)));n+=u;for(var f=0,h=l.indexOf("/",f)+1;0