Web code for ARKit Gallery?

So I attempted to simply link a USDZ file in a website, but all that did was try and download the file to the Files app. Is there a specific code that needs to be injected into the site page for this to work as it does on the demo page?

Accepted Reply

So I guess it can't just be a link, it has to be a image link.


Example.

<a href="/AR/Banner_Stand_9.usdz" rel="ar">
<img alt="" height="250" src="https://developer.apple.com/arkit/gallery/models/stratocaster/stratocaster.jpg" 
width="250" class="aligncenter" /> </a>

Replies

So I guess it can't just be a link, it has to be a image link.


Example.

<a href="/AR/Banner_Stand_9.usdz" rel="ar">
<img alt="" height="250" src="https://developer.apple.com/arkit/gallery/models/stratocaster/stratocaster.jpg" 
width="250" class="aligncenter" /> </a>