<pc-render>
The <pc-render>
tag is used to define a render component that renders a 3D primitive.
Usage
- It must be a direct child of a
<pc-entity>
.
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
cast-shadows | Flag | - | Whether the component casts shadows |
enabled | Boolean | "true" | Enabled state of the component |
receive-shadows | Flag | - | Whether the component receives shadows |
type | Enum | - | Primitive shape: "box" | "capsule" | "cone" | "cylinder" | "plane" | "sphere" |
Example
JavaScript Interface
You can programmatically create and manipulate <pc-render>
elements using the RenderComponentElement API.