unityunityOnGUI游戏画面中查看debug:OnGUIZHY2022-09-142022-10-03private void OnGUI() { Rect rect = new Rect(200, 200, 200, 200);//显示位置 string msg = "是否有跳跃缓冲:" + HasJumpInputBuffer;//字符串 GUIStyle style = new GUIStyle();//自定义文本样式 style.fontSize = 20; style.fontStyle = FontStyle.Bold;//粗体 GUI.Label(rect, msg, style); }