Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.IMGUIModule

The IMGUI module provides Unity's immediate mode GUI solution for creating in-game and editor user interfaces.
Read time 1 minuteLast updated 3 hours ago

Definition

  • Type: Module

Remarks

Additional Resources: GUI tutorial.

Classes

Class

Description

ExitGUIExceptionAn exception that will prevent all subsequent immediate mode GUI functions from evaluating for the remainder of the GUI loop.
GUIThe GUI class is the interface for Unity's GUI with manual positioning.
GUIContentThe contents of a GUI element.
GUILayoutThe GUILayout class is the interface for Unity gui with automatic layout. Unlike the standard GUI class which requires manual coordinates, GUILayout arranges controls based on their content and container.
GUILayoutOptionClass internally used to pass layout options into GUILayout functions. You don't use these directly, but construct them with the layouting functions in the GUILayout class.
GUILayoutUtilityUtility functions for implementing and extending the GUILayout class.
GUISettingsGeneral settings for how the GUI behaves.
GUISkinDefines how GUI looks and behaves.
GUIStyleStyling information for GUI elements.
GUIStyleStateSpecialized values for the given states used by GUIStyle objects.
GUITargetAttributeAllows to control for which display the OnGUI is called.
GUIUtilityUtility class for making new GUI controls.

Enums

Enum

Description

FocusTypeUsed by GUIUtility.GetControlID to inform the IMGUI system if a given control can get keyboard focus. This allows the IMGUI system to give focus appropriately when a user presses tab for cycling between controls.
ImagePositionHow image and text is placed inside GUIStyle.
ScaleModeScaling mode to draw textures with.
TextClippingDifferent methods for how the GUI system handles text being too large to fit the rectangle allocated.