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.

GUISkin

class in UnityEngine

/

Hereda de:ScriptableObject

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

Defines how GUI looks and behaves.

GUISkin contains GUI settings and a collection of GUIStyle objects that together specify GUI skin.

Active GUI skin is get and set through GUI.skin.

Variables

boxStyle used by default for GUI.Box controls.
buttonStyle used by default for GUI.Button controls.
customStylesArray of GUI styles for specific needs.
fontLa fuente por defecto para todos los estilos.
horizontalScrollbarStyle used by default for the background part of GUI.HorizontalScrollbar controls.
horizontalScrollbarLeftButtonStyle used by default for the left button on GUI.HorizontalScrollbar controls.
horizontalScrollbarRightButtonStyle used by default for the right button on GUI.HorizontalScrollbar controls.
horizontalScrollbarThumbStyle used by default for the thumb that is dragged in GUI.HorizontalScrollbar controls.
horizontalSliderStyle used by default for the background part of GUI.HorizontalSlider controls.
horizontalSliderThumbStyle used by default for the thumb that is dragged in GUI.HorizontalSlider controls.
labelStyle used by default for GUI.Label controls.
scrollViewStyle used by default for the background of ScrollView controls (see GUI.BeginScrollView).
settingsGeneric settings for how controls should behave with this skin.
textAreaStyle used by default for GUI.TextArea controls.
textFieldStyle used by default for GUI.TextField controls.
toggleStyle used by default for GUI.Toggle controls.
verticalScrollbarStyle used by default for the background part of GUI.VerticalScrollbar controls.
verticalScrollbarDownButtonStyle used by default for the down button on GUI.VerticalScrollbar controls.
verticalScrollbarThumbStyle used by default for the thumb that is dragged in GUI.VerticalScrollbar controls.
verticalScrollbarUpButtonStyle used by default for the up button on GUI.VerticalScrollbar controls.
verticalSliderStyle used by default for the background part of GUI.VerticalSlider controls.
verticalSliderThumbStyle used by default for the thumb that is dragged in GUI.VerticalSlider controls.
windowStyle used by default for Window controls (SA GUI.Window).

Funciones Públicas

FindStyleTry to search for a GUIStyle. This functions returns NULL and does not give an error.
GetStyleGet a named GUIStyle.

Miembros heredados

Variables

hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

GetInstanceIDReturns the instance id of the object.
ToStringDevuelve el nombre del objeto.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateDevuelve el nombre del objeto.
CreateInstanceCreates an instance of a scriptable object.

Operadores

bool¿Existe el objeto?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.

Mensajes

OnDestroyThis function is called when the scriptable object will be destroyed.
OnDisableThis function is called when the scriptable object goes out of scope.
OnEnableThis function is called when the object is loaded.