Header menu logo Mibo

QuadBuilder Type

Builder for creating individual Quad3D objects. Used via the quad computation expression.

Example

 quad {
     at (Vector3(0f, 0f, 0f))
     onXZ (Vector2(2f, 2f))
     color Color.White
 }

Constructors

Constructor Description

QuadBuilder()

Full Usage: QuadBuilder()

Returns: QuadBuilder
Returns: QuadBuilder

Instance members

Instance member Description

at pos

Full Usage: at pos

Parameters:
Returns: QuadState
Modifiers: inline

Sets the center position of the quad.

pos : Vector3
Returns: QuadState

color c

Full Usage: color c

Parameters:
Returns: QuadState
Modifiers: inline

Sets the vertex color tint.

c : Color
Returns: QuadState

onXY size

Full Usage: onXY size

Parameters:
Returns: QuadState
Modifiers: inline

Configures the quad geometry to lie on the XY plane (typical for in-world UI).

size : Vector2
Returns: QuadState

onXZ size

Full Usage: onXZ size

Parameters:
Returns: QuadState
Modifiers: inline

Configures the quad geometry to lie on the XZ plane (typical for ground decals).

size : Vector2
Returns: QuadState

relativeTo parent

Full Usage: relativeTo parent

Parameters:
Returns: QuadState
Modifiers: inline

Sets a parent transform matrix. The quad's position and orientation will be transformed by this matrix.

parent : Matrix
Returns: QuadState

this.Run

Full Usage: this.Run

Parameters:
Returns: Quad3D
Modifiers: inline

Finalizes the quad into a Quad3D object.

s : QuadState
Returns: Quad3D

uv u

Full Usage: uv u

Parameters:
Returns: QuadState
Modifiers: inline

Sets specific UV coordinates.

u : UvRect
Returns: QuadState

this.Yield

Full Usage: this.Yield

Parameters:
    () : unit

Returns: QuadState
Modifiers: inline
() : unit
Returns: QuadState

Type something to start searching.