Skip to content

Instantly share code, notes, and snippets.

@anzfactory
Last active August 29, 2015 14:03
Show Gist options
  • Save anzfactory/595d9f70abd7f8e9dc5a to your computer and use it in GitHub Desktop.
Save anzfactory/595d9f70abd7f8e9dc5a to your computer and use it in GitHub Desktop.
Gui.ModalWindow使ってみた
private const int ModalWindowId = 100;
private Rect windowRect;
void OnGUI()
{
windowRect = GUI.ModalWindow(
ModalWindowId,
new Rect(0, 0, Screen.width, Screen.height),
ModalWindowCallback,
"モーダルだよー!"
);
}
void ModalWindowCallback (int windowId)
{
// ここで何かしら制御いるのかな
// 普通にモーダルの下のボタンとか反応する時があるのだけれど…
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment