Version: 2.0.2

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 ValueDescription
renderResourceIdBigIntn/aSets the resource used when drawing the quad component (optional).

Element Properties

NameTypeDescription
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.
viewModestringSets the current ViewMode to the given value.
sizevec2Sets the custom size, which is one by default: [1, 1].

viewMode options: ViewMode