GUI 简单使用

  void OnGUI()
    {
        GUIStyle fontStyle = new GUIStyle();
        fontStyle.normal.background = null;    //设置背景填充
        fontStyle.normal.textColor = Color.red;   //设置字体颜色
        fontStyle.fontSize = 30;       //字体大小
        GUI.Label(new Rect(10, 10, 500, 200), "测试", fontStyle);
    }

猜你喜欢

转载自blog.csdn.net/qq_38513810/article/details/130646157
GUI