Using Unity 5.3.4
When drawing my selection box to the screen using :
GUI.DrawTexture(selectionRect, this.SelectionTexture);
The texture draws in the correct position, but the 1px border scales, which I don’t want it do to. No matter the size of the selection box, I would like the border to stay at 1px.
I have adjusted the texture in the sprite editor to be of type Sprite (2D and UI), to be Single and to have a border of L:1 B:1 R:1 T:1
I have seen a similar question asked here : 9-Sliced Legacy GUI - Questions & Answers - Unity Discussions but I’m unsure of the syntax that the accepted answer mentions.
Any clues what I might be doing wrong with GUI.DrawTexture() to draw my texture as a sliced texture ? Or whether I need to use another method, and what that syntax might be ?