- Home /
How to select custom 9-sliced sprite as UI-Image source image?
Hi
When i try to select my sprite it doesnt appear, however all my 9 slices are selectable? If I drag my sprite to inspector instead the first of the 9 slices get selected. The image typ also changes from sliced to simple and if i try to change back to sliced i get error message: "this image doesnt have a border"
To make slicing possible i first changed my sprite mode to multiple...
Answer by RedHedZed · Jul 10, 2015 at 06:36 PM
You've literally split the sprite into multiple sprites. Instead you need to have it set to single, and set the "border" property on the sprite in the sprite editor.
Ok.. so if I begin with a new sprite I should keep it in single mode? But when in single mode the "Slice" option is greyed out (not possible to choose).
Or do you mean I first select multiple mode and slice it and THEN I change back to single mode?
Nono, don't slice it. Open it in the Sprite Editor and look for the "Border" property and mess with that.
Your answer
Follow this Question
Related Questions
How to create sprite at run time? 1 Answer
Scrollview Without Canvas 1 Answer
How UI Batching works with two different sprites ? 0 Answers
compress photos on import 0 Answers