/// <summary> /// 主绘制入口函数 /// </summary> void OnGUI() { scrollPosition = GUILayout.BeginScrollView(scrollPosition, GUILayout.Width(position.width), GUILayout.Height(position.height)); GUILayout.Label(EventBox.Print()); GUILayout.EndScrollView(); }