blend-model (component)

Other topics

Remarks:

VALUES

TypeDescription
selectorSelector to an <a-asset-item>
stringurl()-enclosed path to a JSON file

EVENTS

Event NameDescription
model-loadedJSON model was loaded into the scene.

Example usage of `blend-model`

We can load the model by pointing using the ID to an that specifies the src to a file:

<a-scene>
  <a-assets>
    <!-- At first we load skeletal animation blending JSON as asset -->
    <a-asset-item id="hand" src="/path/to/hand.json"></a-asset-item>
  </a-assets>
  <!-- Now we can use that asset with blend-model-->
  <a-entity blend-model="#hand"></a-entity>
</a-scene>

Syntax:

  • <a-entity blend-model="#a-asset-item-selector"></a-entity>

Contributors

Topic Id: 10073

Example Ids: 30916

This site is not affiliated with any of the contributors.