Gizmos
The Gizmos class is used to provide visual debugging or setting assistance in the Scene view.
Static Properties
Gizmos.color : Color |
| The current color used for drawing Gizmos. |
Gizmos.matrix : Matrix4x4 |
| The transformation matrix used for drawing Gizmos. |
Gizmos.lineWidth : number |
| Line width. |
Static Methods
Gizmos.CleanMatrix ( ) : void |
| Clears the matrix used by the editor to draw Gizmos. |
Gizmos.DrawCube ( center : Vector3 , size : Vector3 ) : void |
| Draw a solid cube with a specified center and size. |
Gizmos.DrawSphere ( center : Vector3 , radius : number , depthTest : boolean ) : void |
| Draw a solid sphere with a center and a radius. |
Gizmos.DrawWireCube ( center : Vector3 , size : Vector3 , depthTest : boolean? ) : void |
| Draws a wireframe with a center and size. |
Gizmos.DrawWireSphere ( center : Vector3 , radius : number , depthTest : boolean ) : void |
| Draws a wireframe of a sphere. |
Gizmos.DrawLine ( p1 : Vector3 , p2 : Vector3 , depthTest : boolean? ) : void |
| Draws a straight line from p1 to p2. |
Gizmos.DrawLineWithColor ( p1 : Vector3 , p1_color : Color , p2 : Vector3 , p2_color : Color , depthTest : boolean? ) : void |
| Draws a colored straight line from p1 to p2. |
Gizmos.DrawCone ( v1 : Vector3 , v2 : Vector3 , radius : number ) : void |
| Draws a cone. |
Gizmos.DrawIcon ( center : Vector3 , texture : Texture2D , allowScaling : boolean? , tint : Color? ) : void |
| Draw an icon. |
