Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

GUILayout.BeginHorizontal

マニュアルに切り替える
public static function BeginHorizontal(params options: GUILayoutOption[]): void;
public static function BeginHorizontal(style: GUIStyle, params options: GUILayoutOption[]): void;
public static function BeginHorizontal(text: string, style: GUIStyle, params options: GUILayoutOption[]): void;
public static function BeginHorizontal(image: Texture, style: GUIStyle, params options: GUILayoutOption[]): void;
public static function BeginHorizontal(content: GUIContent, style: GUIStyle, params options: GUILayoutOption[]): void;

パラメーター

text グループ上に表示するテキスト
image グループ上に表示する Texture
content グループのためのテキスト、画像、ツールチップ
style 使用する背景画像とパディングの値。省略された場合は、背景は透明になります。
options 特別なレイアウトプロパティーのオプションリスト。ここに渡された値で style で定義された設定を上書きします。
See Also: GUILayout.Width, GUILayout.Height, GUILayout.MinWidth, GUILayout.MaxWidth, GUILayout.MinHeight, GUILayout.MaxHeight, GUILayout.ExpandWidth, GUILayout.ExpandHeight.

説明

水平のコントロールグループを開始します

この要素内部にレンダリングされるすべてのコントロールは隣同士の水平に配置されていきます。このグループは必ず EndHorizontal で終了させなければいけません。


水平のレイアウト

	function OnGUI () {	
		// Starts a horizontal group
		GUILayout.BeginHorizontal ("box");

GUILayout.Button ("I'm the first button"); GUILayout.Button ("I'm to the right"); GUILayout.EndHorizontal (); }