言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

GUIContent.image

public var image: Texture;

Description

アイコン画像

	var icon : Texture;

	function OnGUI () {
		if(!icon) {
			Debug.LogError("Add a texture on the inspector first");
			return;
		}
		GUI.Button (Rect (0, 0, 100, 20), GUIContent (icon));
	}