- Home /
How to stretch only the middle of a GUI texture?
Our artist gave me a GUI texture with a small length.I want to stretch it for each scene.I try to change transform's scale and pixel inset,but it's not what I want it to be !I want to stretch the GUI texture only at it's middle part.How to do it?
Comment
Best Answer
Answer by WillTAtl · Nov 30, 2011 at 07:28 AM
Use the GUITexture component's border settings, in the inspector it shows leftBorder, rightBorder, topBorder, and bottomBorder, these specify how many pixels on each edge will be unstretched.
Your answer
![](https://koobas.hobune.stream/wayback/20220613060712im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Stretching Texture2D 1 Answer
Why are all my GUITexture elements semi-transparent? 0 Answers
How to display textures that are in an array? 1 Answer
Problem With GUI Circle Thickness 0 Answers
Specific Texture Tiling 1 Answer