I am trying to start customizing the GUI in my Proof of Concept, and I’m having a hard time understanding exactly how the BackgroundImage works with a GUISkin/GUIStyle.
The border values for a particular GUIStyle indicate how much of the background image isn’t stretched, right? So you can do corner art? For instance, a value of 10 on the top and 20 on the left and right would mean that you can have 20x10 corner art pieces on the top-left and top-right?
So then, what happens to the middle? Does it just get stretched?
If I were to want some “woven” pattern that repeats every few pixels, would it simply get stretched?
Setting everything up is pretty well documented but I can’t find anything that explains this thoroughly enough for me – especially given that the documentation likens it to CSS (since the Background Image property in CSS behaves in no way like this, nor do the border properties).
Just looking for guidance! Thanks!
Edit: from some manual image manipulation / testing, it looks like my assumption about the middle (and the spaces between the corner-art) being stretched was correct.
I’m curious, if I did have a knot or chain tilable pattern for the spaces between the corner-art, would I be able to tell the GUIStyle to tile my image in any way? Could I do something similar for the center area, if I had a checker or paper pattern? I’m looking at the Necromancer GUI in the Asset store, and wondering if its nice paper BG gets stretched if the user creates an unusually horizontal Window?