Select your preferred scripting language. All code snippets will be displayed in this language.
enumeration
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseUsed by GUIUtility.GetControlID to inform the UnityGUI system if a given control can get keyboard focus.
Native | This control can get keyboard focus on Windows, but not on Mac. Used for buttons, checkboxes and other "pressable" things. |
Keyboard | This is a proper keyboard control. It can have input focus on all platforms. Used for TextField and TextArea controls. |
Passive | This control can never recieve keyboard focus. |