- Home /
How to Vertically Stretch a Custom Thumb for Unity Scrollbars
I am trying to make a custom skin for the unity GUI scrollbars like in GUI.BeginScrollView. Using the properties of the GUIStyle, how would I make the image below stretch vertically without it stretching the middle section?
The code that I do have now looks like:
GUIStyle VerticalScrollbarThumbStyle = new GUIStyle();
VerticalScrollbarThumbStyle.normal.background = UIAssetLoader.LoadTexture("Resources/Textures/scrollBarThumb");
VerticalScrollbarThumbStyle.border.bottom =
VerticalScrollbarThumbStyle.border.top = 2;
Comment
This is a really good question, have you figured out a solution?
Your answer
![](https://koobas.hobune.stream/wayback/20220613121630im_/https://answers.unity.com/themes/thub/images/avi.jpg)