Skip to content

Instantly share code, notes, and snippets.

@MartinGonzalez
Created January 21, 2019 00:46
Show Gist options
  • Save MartinGonzalez/e7914e2c88973ad432761f780cffb854 to your computer and use it in GitHub Desktop.
Save MartinGonzalez/e7914e2c88973ad432761f780cffb854 to your computer and use it in GitHub Desktop.
Layout.cs
using System;
using UnityEngine;
public static class Layout {
public static void Horizontal(Action block) {
GUILayout.BeginHorizontal();
block();
GUILayout.EndHorizontal();
}
public static void Vertical(Action block) {
GUILayout.BeginVertical();
block();
GUILayout.EndVertical();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment