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
Name | Type | Default Value | Description |
---|---|---|---|
renderResourceId | BigInt | n/a | Sets the resource used when drawing the quad component (optional). |
Element Properties
Name | Type | Description |
---|---|---|
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. |
viewMode | string | Sets the current ViewMode to the given value. |
size | vec2 | Sets the custom size, which is one by default: [1, 1]. |