当前位置: 首页 > 文档资料 > A-Frame 中文文档 >

<a-gltf-model>

优质
小牛编辑
122浏览
2023-12-01

The glTF model primitive displays a 3D glTF model created from a 3D modeling program or downloaded from the web.

Example

<a-scene>  <a-assets>    <a-asset-item src="tree.gltf">  </a-assets>  <!-- Using the asset management system. -->  <a-gltf-model src="#tree"></a-gltf-model>  <!-- Defining the URL inline. Not recommended but more comfortable for web developers. -->  <a-gltf-model src="tree.gltf"></a-gltf-model></a-scene>

Attribute

AttributeComponent MappingDefault Value
srcgltf-model.srcnull