Skip to main content

<pc-model>

The <pc-model> tag is used to define an entity that instantiates a 3D model from a GLB file.

note

Attributes

All attributes of <pc-entity> are also available.

AttributeDescription
assetA string that should match the id of a <pc-asset> tag that has a type of container.

Example

<pc-asset src="assets/car.glb" id="car"></pc-asset>
<pc-scene>
<pc-model asset="car"></pc-model>
</pc-scene>

JavaScript Interface

You can programmatically create and manipulate <pc-model> elements using the ModelElement API.