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

スクリプト言語

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

GUILayout.Width

public static function Width(width: float): GUILayoutOption;

Description

決められた幅をコントロールに与えるオプション


GUIコントロールの固定幅

	// Draws a  button with a  fixed width
	function OnGUI() {
		GUILayout.Button("A Button with fixed width", GUILayout.Width(300));
	}