- Home /
Question by
SVKsuli · Jan 15, 2019 at 02:06 AM ·
physics2dpolygon collider 2d
according to what PolygonCollider get shape around gameobject?
Hello, i using texture.SetPixel() to change half of sprite color to transparency, and when i make it full transparent and i update PolygonCollider, it fit exactly around visible pixels... Its working until transparency of pixels are under 0.79. But when i try to change pixels color to transparent with shader it dont work, even though i try to discard pixels. Whats happening here and whats the difference? Here are codes that i using: C# code, Shader code
Comment