Last active
August 29, 2015 14:03
-
-
Save anzfactory/595d9f70abd7f8e9dc5a to your computer and use it in GitHub Desktop.
Gui.ModalWindow使ってみた
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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