Skip to main content

Tag Reference

Here is a complete list of the tags that are available in PlayCanvas Web Components.

The attributes of every tag share the same value conventions: an absent (or removed) attribute means the engine default applies, and an invalid value logs a console warning and falls back to the default. See Attributes for how booleans, numbers, enums, vectors and colors are written.

Tags also have placement rules — each tag's page notes the parent it requires. A misplaced element logs a console warning naming the required parent, so keep the console open while authoring.

TagDescription
<pc-app>Defines the root element of your application.
<pc-asset>Defines an asset to be loaded by your application.
<pc-button>Defines a button component.
<pc-camera>Defines a camera that is used to render the scene.
<pc-collision>Defines a collision component used by triggers and rigid bodies.
<pc-element>Defines a text, image or group user interface element.
<pc-entity>Defines an entity.
<pc-gsplat>Defines a gsplat component that renders 3D Gaussian Splats.
<pc-layoutchild>Defines a layout child component.
<pc-layoutgroup>Defines a layout group component.
<pc-light>Defines a light component.
<pc-listener>Defines a listener component.
<pc-material>Defines a material that render components can reference.
<pc-model>Defines an entity that instantiates a 3D model from a GLB file.
<pc-module>Defines a WebAssembly module.
<pc-particles>Defines a particle system component.
<pc-render>Defines a render component.
<pc-rigidbody>Defines a rigidbody component.
<pc-scene>Defines a scene.
<pc-screen>Defines a screen component that can render element components.
<pc-script>Defines a single script assigned to a script component.
<pc-scripts>Defines a script component.
<pc-scrollbar>Defines a scrollbar component.
<pc-scrollview>Defines a scroll view component.
<pc-sky>Defines an image-based skybox.
<pc-sound>Defines a single sound assigned to a sound component.
<pc-sounds>Defines a sound component.