Skip to content

Instantly share code, notes, and snippets.

@gluschenko
Created November 19, 2014 17:29
Show Gist options
  • Save gluschenko/3db19183d12ee79ae87d to your computer and use it in GitHub Desktop.
Save gluschenko/3db19183d12ee79ae87d to your computer and use it in GitHub Desktop.
using System;
public class lalala
{
void OnGUI() //Стандартный метод Unity
{
GUILayout.BegunArea(new Rect(100, 100, 300, 300));
GUILayout.BeginVertical();
for(int i = 0; i < 10; i++)
{
GUILayout.BeginHorizontal();
GUILayout.Button("Lalala " + i, GUILayout.Width(90));
GUILayout.Button("Blabla " + i, GUILayout.Width(90));
GUILayout.Button("Lolo " + i, GUILayout.Width(90));
GUILayuot.EndHorizontal();
}
GUILayout.EntVertical();
GUILayout.EndArea();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment