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

スクリプト言語

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

GUI.ModalWindow

マニュアルに切り替える
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, string text);
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, Texture image);
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, GUIContent content);
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, string text, GUIStyle style);
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, Texture image, GUIStyle style);
public static Rect ModalWindow(int id, Rect clientRect, GUI.WindowFunction func, GUIContent content, GUIStyle style);

パラメーター

id ユニークな ID 番号
clientRect ウィンドウのサイズと位置
func ウィンドウ内のコンテンツを描画する即時モードの GUI コードが含まれているメソッド
text ウィンドウのタイトルバー領域に表示されるテキスト
image ウィンドウのタイトルバー領域に表示される画像
content ウィンドウのタイトルバーに表示される GUIContent
style ウィンドウに適用するスタイル

説明

モーダルウィンドウを表示します

GUI.Window と同じに見えますが、このウィンドウは常に他の GUI よりも最前面に表示されます。これによりすべての GUI の入力やイベントが受け取れることが保証されます。モーダルウィンドウが表示されている間は他のコントロールは入力処理を行いません。モーダルウィンドウは 1 度に 1 つのみ表示できます。