Показать сообщение отдельно
Старый 13.10.2012, 19:38   #662
pax
Unity/C# кодер
 
Аватар для pax
 
Регистрация: 03.10.2005
Адрес: Россия, Рязань
Сообщений: 7,568
Написано 3,006 полезных сообщений
(для 5,323 пользователей)
Ответ: Вопросы от новичка

Как-то так

foreach(Transform child in transform) {
     GUILayout.BeginArea(new Rect(0,0,Screen.width, Screen.height));

			GUIButton button = child.GetComponent<GUIButton>();
			if(button.anchor == Anchor.Center || button.anchor == Anchor.Right) GUILayout.FlexibleSpace();
			button.DrawGUI();
			if(button.anchor == Anchor.Center || button.anchor == Anchor.Left) GUILayout.FlexibleSpace();
		
     GUILayout.EndArea();
}
__________________
Blitz3d to Unity Wiki
(Offline)
 
Ответить с цитированием