a get or set accessor expected
我输的代码是:
using UnityEngine;
using System.Collections;
public class helloworld : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI
{
// 改变字符的大小
GUI.skin.label.frontSize = 100;
// 输入文字
GUI.label( new Rect( 10, 10, Screen.width, Screen.height ), "hello world"
}
}
我输的代码是:
using UnityEngine;
using System.Collections;
public class helloworld : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI
{
// 改变字符的大小
GUI.skin.label.frontSize = 100;
// 输入文字
GUI.label( new Rect( 10, 10, Screen.width, Screen.height ), "hello world"
}
}