Format
typescript
Gizmos.DrawSphere(center, radius, depthTest)class: Gizmos
Description
Draw a solid sphere with a center and a radius.
Parameters
| param_name | type | description |
|---|---|---|
| center | Vector3 | The center coordinate of the sphere. |
| radius | number | The radius of the sphere. |
| depthTest | boolean | Whether to perform depth testing. |
Return
| type | description |
|---|---|
void |
Code Example
typescript
OnUpdate(): void {
let center = new Vector3(0,0,0);
let radius = 1;
Gizmos.DrawSphere(center,radius,false);
}