Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

GUI

class in UnityEngine

Sugiere un cambio

¡Éxito!

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.

Cerrar

No se puedo enviar

Por 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.

Cerrar

Cancelar

Cambiar al Manual

Descripción

The GUI class is the interface for Unity's GUI with manual positioning.


See Also: GUI tutorial.

Variables Estáticas

backgroundColorGlobal tinting color for all background elements rendered by the GUI.
changedReturns true if any controls changed the value of the input data.
colorGlobal tinting color for the GUI.
contentColorTinting color for all text rendered by the GUI.
depthThe sorting depth of the currently executing GUI behaviour.
enabledIs the GUI enabled?
matrixThe GUI transform matrix.
skinThe global skin to use.
tooltipThe tooltip of the control the mouse is currently over, or which has keyboard focus. (Read Only).

Funciones Estáticas

BeginGroupBegin a group. Must be matched with a call to EndGroup.
BeginScrollViewBegin a scrolling view inside your GUI.
BoxCreate a Box on the GUI Layer. A Box can contain text, an image, or a combination of these along with an optional tooltip, through using a GUIContent parameter. You may also use a GUIStyle to adjust the layout of items in a box, text colour and other properties.
BringWindowToBackBring a specific window to back of the floating windows.
BringWindowToFrontBring a specific window to front of the floating windows.
ButtonMake a single press button. The user clicks them and something happens immediately.
DragWindowMake a window draggable.
DrawTextureDraw a texture within a rectangle.
DrawTextureWithTexCoordsDraw a texture within a rectangle with the given texture coordinates. Use this function for clipping or tiling the image within the given rectangle.
EndGroupEnd a group.
EndScrollViewEnds a scrollview started with a call to BeginScrollView.
FocusControlMove keyboard focus to a named control.
FocusWindowMake a window become the active window.
GetNameOfFocusedControlGet the name of named control that has focus.
HorizontalScrollbarMake a horizontal scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
HorizontalSliderA horizontal slider the user can drag to change a value between a min and a max.
LabelMake a text or texture label on screen.
ModalWindowShow a Modal Window.
PasswordFieldMake a text field where the user can enter a password.
RepeatButtonMake a button that is active as long as the user holds it down.
ScrollToScrolls all enclosing scrollviews so they try to make position visible.
SelectionGridMake a grid of buttons.
SetNextControlNameSet the name of the next control.
TextAreaMake a Multi-line text area where the user can edit a string.
TextFieldMake a single-line text field where the user can edit a string.
ToggleMake an on/off toggle button.
ToolbarMake a toolbar.
UnfocusWindowRemove focus from all windows.
VerticalScrollbarMake a vertical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
VerticalSliderA vertical slider the user can drag to change a value between a min and a max.
WindowMake a popup window.

Delegados

WindowFunctionCallback to draw GUI within a window (used with GUI.Window).