Skip to main content

<pc-render>

The <pc-render> tag is used to define a render component that renders a 3D primitive.

Usage

Attributes

AttributeTypeDefaultDescription
cast-shadowsFlag-Whether the component casts shadows
enabledBoolean"true"Enabled state of the component
receive-shadowsFlag-Whether the component receives shadows
typeEnum-Primitive shape: "box" | "capsule" | "cone" | "cylinder" | "plane" | "sphere"

Example

JavaScript Interface

You can programmatically create and manipulate <pc-render> elements using the RenderComponentElement API.