RENDER
RENDER is an Engine component section (tone="engine"), intrinsic to every table
Entity — every object has one, and it can be configured but never removed. It is the
smallest section in the Inspector: one field.
Source: the RENDER EmCollapsible in TableEditModeShell.tsx's object Inspector branch.
Fields#
| Field | Type | Values | Default | Runtime effect | Replicates |
|---|---|---|---|---|---|
| Material | drag-and-drop material slot (MaterialBox) |
any project SceneMaterial or built-in preset, or empty |
empty (the runtime's per-kind default appearance) | Assigns the material the runtime renders this entity's mesh with. Dragging a material card onto the slot assigns it; the × clears it back to the per-kind default. | Yes — metadata.materialId, part of TableObjectState.metadata |
⚠ RENDER has no enable checkbox#
Unlike RIGIDBODY and COLLISION, RENDER renders with no header enable checkbox at
all. This is deliberate, not an oversight:
- Visibility is owned end-to-end by one writer — the runtime function that applies
visibility to an object also encodes the card-face and hidden-information redaction rules.
A second, independent
renderenable flag would fight that writer. - The control that governs whether this entity draws anything is the
ENTITYheader's own Enabled toggle — which, per PlayCanvas semantics, disables every component (not just render) when turned off. - A
metadata.renderEnabledflag was proposed during the ECS alignment work and never implemented. If you encounter a reference to it — in an older doc, a comment, or a memory file — treat it as stale;docs/memory/ecs-terminology.mdhas been corrected to match this.
See also#
- ENTITY — the actual visibility control.
- PIECE — the panel directly above
RENDER; it used to live insideRENDERand was split out because its fields (kind, surface) are not render state. - materials-and-textures.md — everything a
SceneMaterialcan configure once assigned here.
