Welcome! › Forums › Unity Plugins › In-App Web Browser › view 3D and AR with model-viewer › Reply To: view 3D and AR with model-viewer
October 27, 2019 at 4:24 pm
#1806
Participant
Hi!
I load these scripts:
<script type=”module” src=”https://unpkg.com/@google/model-viewer/dist/model-viewer.js”></script>
<script nomodule src=”https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js”></script>
and this code:
<model-viewer ar preload camera-controls auto-rotate poster=”assets/poster-shishkebab.png” src=”https://www.olo.promo/webAR/assets/tamp.glb” ios-src=”apple-watch-series-5.usdz” alt=”A 3D model of an astronaut.”></model-viewer>