Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GUI.WindowFunction

Callback to draw GUI within a window (used with GUI.Window ).
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Delegate
  • Namespace: UnityEngine
  • Assembly: UnityEngine.IMGUIModule
public delegate void GUI.WindowFunction(int id)

Remarks

This function takes the ID number of the window to be drawn. Its body should contain GUI calls to display the window, much like a standard OnGUI function. This function can then be passed as a parameter to GUI.Window to draw the appropriate contents.