Assets Tag

Assets Tag

Working with the assets tag <a-asset>

To use images or videos several times, it is possible to place them in the <a-asset> tag. All details are in the documentation. The tag supports the four following items:

  • <a-asset-item> – Miscellaneous assets such as 3D models and materials
  • <audio> – Sound files
  • <img> – Image textures
  • <video> – Video textures

Please note that – as in HTML – <video> and <audio> tags need an end tag, but not <img>.

Audio and video assets will block the scene if we set preload="auto" or preload="true"


Please use the example to test.

Comments are closed.