之前对GUI掌握的很差,每次在想实现结束游戏,弹窗操作时都无从下手,今天特意查了下,完成了这个功能。 即通过GUI.Window() 函数原型: static Rect Window(int id, Rect clientRect, WindowFunction func, string text);