Skip to content

Format

typescript
Gizmos.DrawCube(center, size)

class: Gizmos

Description

Draw a solid cube with a specified center and size.

Parameters

param_nametypedescription
centerVector3The center coordinate of the cube.
sizeVector3The size of the cube.

Return

typedescription
void

Code Example

typescript
OnUpdate(): void {

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