- Home /
GUILayout.BeginHorizontal with a visual border/background?
I'm using GUILayout.BeginHorizontal() to create a series of panes (there are many other nested horizontal/vertical areas). I need a visible border or background image to cover the entire width/height of each of these horizontal/vertical areas so that the user can tell which parts represent sections. I don't see an option in my GUISkin to do this. Anyone know how I can do this?
Answer by Molix · Apr 17, 2010 at 04:12 AM
GUILayout.BeginHorizontal() has an optional GUIStyle argument. Pass in a style there (e.g. "Box") and it will use it.
Yep that is the solution and very handy to know, thanks.
Answer by CaJerry87 · Dec 20, 2016 at 07:45 AM
Or you can check this out. It has something about horizontal and vertical layouts in a Custom Inspector. http://answers.unity3d.com/answers/1288008/view.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612170849im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
GUILayout Positioning for SelectionGrids and Buttons 2 Answers
Trouble with implementing tooltip with GUILayout 1 Answer
How to solve GUI Layout problem 1 Answer
Text color change onHover 2 Answers
Why would my GuiLayout area ease in but not ease out 0 Answers