Format
typescript
Gizmos.DrawCube(center, size)class: Gizmos
Description
Draw a solid cube with a specified center and size.
Parameters
| param_name | type | description |
|---|---|---|
| center | Vector3 | The center coordinate of the cube. |
| size | Vector3 | The size of the cube. |
Return
| type | description |
|---|---|
void |
Code Example
typescript
OnUpdate(): void {
let center = new Vector3(0,0,0);
let size = new Vector3(1,1,1);
Gizmos.DrawCube(center,size);
}