(http://unity3d.com/support/documentatio ... trols.html)
- Код: Выделить всё
/* Window example */
var windowRect : Rect = Rect (20, 20, 400, 400);
function OnGUI () {
windowRect = GUI.Window (0, windowRect, WindowFunction, "My Window");
}
function WindowFunction (windowID : int) {
// Draw any Controls inside the window here
}
Окно маленькое, какие размеры не ставь... только если написать
- Код: Выделить всё
windowRect = GUI.Window (0, windowRect, WindowFunction, "My Window");
как
- Код: Выделить всё
windowRect = GUI.Window (0, Rect (20, 20, 400, 400), WindowFunction, "My Window");
Оно становится нормального размера.
Где я туплю?)