Skip to content

Format

typescript
Gizmos.DrawWireCube(center, size, depthTest)

class: Gizmos

Description

Draws a wireframe with a center and size.

Parameters

param_nametypedescription
centerVector3The center coordinates.
sizeVector3The size.
depthTestboolean?Whether to perform depth testing.

Return

typedescription
void

Code Example

typescript
OnUpdate(): void {

    let center = new Vector3(0,0,0);
    let size = new Vector3(1,1,1);
    Gizmos.DrawWireCube(center,size);
    
}