【3Dゲームエンジン】Unity 3
■ このスレッドは過去ログ倉庫に格納されています
0153名前は開発中のものです。
2011/05/09(月) 23:40:09.96ID:xJ53qtROこんな感じでいけた。GUILayout.Button()を使った。
using UnityEngine;
using System.Collections;
public class testGUI : MonoBehaviour {
public GUIStyle gStyle;
void OnGUI() {
GUI.skin.button = gStyle;
if (GUILayout.Button(""))
Debug.Log("Clicked the image");
}
}
そして、InspectorパネルでgStyelの設定を行う。
Fixed Width:400
Fixed Height:400
Stretch Width:true
Stretch Height:true
■ このスレッドは過去ログ倉庫に格納されています