Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IMGUI (Immediate Mode GUI)

A legacy, code-driven UI system that uses the OnGUI function to draw and manage UI. Use IMGUI to create custom Inspectors for script components, extensions for the Unity Editor, and in-game debugging displays.
Read time 1 minuteLast updated 12 days ago

IMGUI (Immediate Mode GUI) is an entirely separate feature to Unity's main GameObject-based UI System. IMGUI is a code-driven GUI system, and is mainly intended as a tool for programmers.

Topic

Description

Introduction to IMGUI (Immediate Mode GUI)Understand IMGUI and how to use
OnGUI
calls to create in-game and in-Editor windows.
IMGUI BasicsUse scripts to create text, labels, textures, and interactive states.
IMGUI ControlsReference for standard IMGUI controls.
Customize IMGUI controlsChange the visual appearance and state backgrounds of controls.
IMGUI Layout ModesPosition elements precisely with Fixed Layout or let Unity arrange them with Automatic Layout.
Extending IMGUIBuild compound controls from standard ones and intercept events to process custom user input.
GUI Skin (IMGUI System)Reference for applying a single set of styles across your entire user interface.
GUI Style (IMGUI System)Reference for the custom attributes that define the appearance of a single IMGUI control.
Extending the Editor with IMGUICreate custom inspector windows, Editor Windows, and property drawers for your tools.

Additional resources