Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.
class in UnityEngine
Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.
CerrarPor alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.
CerrarGizmos 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 | Sets the color for the gizmos that will be drawn next. |
matrix | Set the gizmo matrix used to draw all gizmos. |
DrawCube | Draw a solid box with center and size. |
DrawFrustum | Draw a camera frustum using the currently set Gizmos.matrix for it's location and rotation. |
DrawGUITexture | Pintar una textura en la escena. |
DrawIcon | Draw an icon at a position in the scene view. |
DrawLine | Pinta una línea comenzando en from hacia to. |
DrawMesh | Draws a mesh. |
DrawRay | Draws a ray starting at from to from + direction. |
DrawSphere | Draws a solid sphere with center and radius. |
DrawWireCube | Draw a wireframe box with center and size. |
DrawWireMesh | Draws a wireframe mesh. |
DrawWireSphere | Draws a wireframe sphere with center and radius. |