【3Dゲームエンジン】Unity 3at GAMEDEV
【3Dゲームエンジン】Unity 3 - 暇つぶし2ch153:名前は開発中のものです。
11/05/09 23:40:09.96 xJ53qtRO
>>151
こんな感じでいけた。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



次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch