Gizmos are used to give visual debugging or setup aids in the Scene view.
All gizmo drawing has to be done in either OnDrawGizmos or
OnDrawGizmosSelected functions of the script.
OnDrawGizmos is called every frame. All gizmos rendered within OnDrawGizmos are pickable.
OnDrawGizmosSelected is called only if the object the script is attached to is selected.
color | Define el color para los gizmos que serán dibujados luego. |
exposure | Set a texture that contains the exposure correction for LightProbe gizmos. The value is sampled from the red channel in the middle of the texture. |
matrix | Sets the Matrix4x4 that the Unity Editor uses to draw Gizmos. |
DrawCube | Dibuja una caja sólida center y size. |
DrawFrustum | Dibuja un frustum de la cámara utilizando el Gizmos.matrix actualmente establecido para su ubicación y rotación. |
DrawGUITexture | Draw a texture in the Scene. |
DrawIcon | Draw an icon at a position in the Scene view. |
DrawLine | Pinta una línea comenzando en from hacia to. |
DrawMesh | Dibuja un mesh. |
DrawRay | Dibuja un rayo empezando from a from + direction. |
DrawSphere | Dibuja una esfera sólida con center y radius. |
DrawWireCube | Dibuja una caja wireframe con center y size. |
DrawWireMesh | Dibuja un wireframe mesh. |
DrawWireSphere | Dibuja una esfera wireframe (alambre) con center y radius. |