Its hard to spot, but its annoying.
I made the button in photoshop, then imported the photo, put the photo on a new mat ui/unlit/transparent, and applied the mat to the image.
I made sure there is no line in photoshop
Well I couldn’t see anything without adjusting the image levels in PS.
I think that is just your texture either wrapping around to it’s right edge or you have multiple sprites in your texture sheet, and you cut the sprite incorrectly, but it doesn’t quite seem like that one.
BTW - usually it is best to describe the problem in detail, what your image import settings are, how you have setup your sprites and so on. Now one has to simply guess what you have done.
Sorry about that im a noob at unity. Its like my 2nd week in this.
Here you can see it more clear
Hope those rect transform numbers dont trigger you. I just fixed it dont worry
What is so weird is that if i zoom out enough it disappears.
Also the left button has the exact same material as the right one.
Try setting that Wrap Mode: Repeating to Clamp, see if it helps.
Try also setting texture compression to None.
Another thing, also check your image file. I can’t quite see it from your screen shots, but make it so (at least for testing purposes) that no shape touches left or right edge of the image. Like this but not that many pixels (you get the idea):
Thank you. Wrap mode worked. I dont know why it happened, in photoshop the current texture doesent touch edges because i thought maybe thats the reason aswell.
Should i change all my textures to wrap mode clamped?
Reviving this thread because I’m having a similar issue, but the weird lines are inside the buttons. This started happening when I changed the canvas to be World Space (diegetic ui). Any way to fix this? My guess its some weird problem with the slices in the button sprite, but no idea.
Fixed by just turning on the Pixel Perfect in the Canvas. Weirdly enough, this option only appears when I enter the prefab of the World Space UI, not in the scene. Anyways, its solved.