Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

OnGUI(rect: Rect): void;
void OnGUI(Rect rect);
def OnGUI(rect as Rect) as void

Parameters

rectThe rectangle to draw the GUI inside.

Description

Callback for drawing GUI controls for the popup window.