Created
January 21, 2019 00:46
-
-
Save MartinGonzalez/e7914e2c88973ad432761f780cffb854 to your computer and use it in GitHub Desktop.
Layout.cs
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
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