メモ
using UnityEngine;
using System.Collections;
public class Seq : MonoBehaviour {
GUIStyle buttonStyle = null;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI() {
if (buttonStyle == null) {
buttonStyle = new GUIStyle(GUI.skin.button);
buttonStyle.fontSize = 32;
}
if (GUI.Button(new Rect(0, 0, 200, 300), "Button", buttonStyle)) {
}
}
}
--
using UnityEngine;
using System.Collections;
public class Seq : MonoBehaviour {
GUIStyle buttonStyle = null;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI() {
if (buttonStyle == null) {
buttonStyle = new GUIStyle(GUI.skin.button);
buttonStyle.fontSize = 32;
}
if (GUI.Button(new Rect(0, 0, 200, 300), "Button", buttonStyle)) {
}
}
}
--