Version: latest

Quad

Description

The Quad component renders a 2D rectangle in your scene and applies a texture to it. You can draw on this node or render stereoscopic images. By default, a quad node renders as a one meter square.

Example

<Quad />

Common Events

Common Properties

Create Properties

NameTypeDefault ValueRequiredDescription
renderResourceIdBigIntn/aSets the resource used when drawing the quad component (optional).

Element Properties

NameTypeDefault ValueDescription
texCoords[vec2]Sets the texture coordinates of the node being rendered when the resource referenced in renderResourceId is a texture. If the render resource is not a texture, this has no effect.
viewModestringfull-areaSets the current ViewMode to the given value.
sizevec2[1, 1]Sets the custom size.

viewMode options: ViewMode