- Home /
getting rid of dirt on edge of plane texture
im making a 2d plattformer game in unity and im having truble with dirt on the edge of planes with alpha texture on them. is there a way to get rid of this by using choke or something simular
Answer by Molix · Apr 15, 2010 at 06:25 PM
If the texture is not tiled, set it to Wrap Mode = Clamp.
If the texture tiles on the plane, then it will need to have 0 alpha on all the edge pixels, otherwise when it blends it will wrap the non-transparent part to the opposite edge.
Click on the texture to inspect it. In the Inspector, Wrap $$anonymous$$ode is the 3rd option down.
Tried serval ways, only yours simply and effectively fixed my issue ! Thank you!
Answer by Jaro · Sep 19, 2013 at 09:34 AM
In Unity 4.2.1f check Alpha is Transparency in Advance Texture Type
Answer by SantaG · Jan 23, 2020 at 08:10 AM
This option save my problem with edges (Work's on android device)