Last active
January 21, 2019 01:03
-
-
Save MartinGonzalez/17663346ca8aa6e2ab3299d184404c7e to your computer and use it in GitHub Desktop.
ExampleEditorWindowV4
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
// Before | |
private void RenderHelloWordRow() { | |
GUILayout.BeginHorizontal(); | |
GUILayout.Label("Hello"); | |
GUILayout.TextField("World!"); | |
GUILayout.EndHorizontal(); | |
} | |
// After | |
private void RenderHelloWordRow() { | |
Layout.Horizontal(() => { | |
GUILayout.Label("Hello"); | |
GUILayout.TextField("World!"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment