Version: 2020.3
언어: 한국어

GUISkin

class in UnityEngine

/

다음으로부터 상속:ScriptableObject

매뉴얼로 전환

설명

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.

변수

boxStyle used by default for GUI.Box controls.
buttonStyle used by default for GUI.Button controls.
customStylesArray of GUI styles for specific needs.
fontThe default font to use for all styles.
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 (See Also: GUI.Window).

Public 함수

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

상속된 멤버

변수

hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public 함수

GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

정적 함수

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeGets a list of all loaded objects of Type type.
InstantiateClones the object original and returns the clone.
CreateInstanceCreates an instance of a scriptable object.

연산자

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.

메시지

AwakeThis function is called when the ScriptableObject script is started.
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.
OnValidateThis function is called when the script is loaded or a value is changed in the Inspector (Called in the editor only).
ResetReset to default values.