文档

Unity Engine

Unity Engine

GUI.WindowFunction

Callback to draw GUI within a window (used with GUI.Window ).
阅读时间1 分钟最后更新于 1 个月前

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.