I have a custom image that I imported into my project as a UI Sprite (its a PNG).
However, I don’t see an option to add a border to my sprite like the original UI, is this still possible? If so how do I add my border?
Actually you have kept the image type to be sliced but your source image is not sliced, Keep your image type to be simple .This image doesnot have a border issue will go.
U can edit your sprite using sprite editor if you want image type to be sliced.
what about when you are using a sliced image? it still gives the same error message.
At first, I didn't know what everyone was talking about. After actually using the sprite editor, however, I realized that you basically have to "give" the image a border with the editor itself. If anyone comes across this and is still confused, I have taken a screenshot of what I am talking about: http://i.imgur.com/8d7sqvg.png
This can be done by editing your sprite in sprite editor while setting properties of your image.
If you don’t want this error for now, change image type to be simple.
Anyone know how to add a border to a image that is imported from a server while the program is running? The images in question are pulled from a server as needed, therefor I cannot preemptively edit them with the sprite editor. I have tried creating a panel and placing the image as a child of it, centered, but this doesn’t look perfect in all screen sizes (for iPhone app.)
what about when you are using a sliced image? it still gives the same error message.
– subjectZeroAt first, I didn't know what everyone was talking about. After actually using the sprite editor, however, I realized that you basically have to "give" the image a border with the editor itself. If anyone comes across this and is still confused, I have taken a screenshot of what I am talking about: http://i.imgur.com/8d7sqvg.png
– JackofTraes