Version: 2022.3
言語: 日本語
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 つのみ表示できます。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961