<pc-render>
The <pc-render> tag is used to define a render component that renders a 3D primitive.
注記
- It must be a direct child of a
<pc-entity>.
Attributes
| 属性 (Attribute) | 説明 |
|---|---|
type | The type of render component. Can be box, capsule, cone, cylinder, plane or sphere. |
cast-shadows | Valueless attribute. If present, the render component casts shadows. |
receive-shadows | Valueless attribute. If present, the render component receives shadows. |
例
JavaScript Interface
You can programmatically create and manipulate <pc-render> elements using the RenderComponentElement API.