C#文字:
public class NewBehaviourScript2 : MonoBehaviour {
public Texture t;
public GUISkin skin;
// Use this for initialization
void Start () {
}
void OnGUI(){
GUILayout.BeginArea(new Rect(0, 0, Screen.width, Screen.height));
GUI.skin = skin;
GUILayout.Button ("haha");
GUILayout.EndArea();
}
}
设置:
1.create->GUI Skin
2.设置属性
3.执行显示效果
版权声明:本文博主原创文章。博客,未经同意不得转载。