- Home /
Unity2D - Platform Game] How Can I automatically create a pixel perfect collider out of the .png alpha channel?
I'm trying to create a platform game in Unity and I created a simple flat platform in photoshop. I read somewhere that Unity can automatically create a collider with a Polygon Collider 2D using the Alpha Channel of the image, and so I did! Here's an Image:
This is its alpha channel
It's all right but when I import it in Unity and attached a Polygon Collider 2D this happens:
Notice how the collider doesn't enclose the platform well enough, my question is:
How can I create a pixel perfect collider around my platform?
Your answer
![](https://koobas.hobune.stream/wayback/20220612130004im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Large 2D polygon mesh levels 1 Answer
Jitter/vibration on an object with constant velocity when using 2D Pixel Perfect Camera 1 Answer
Can pixel perfect camera can be done with different PPU assets? 0 Answers
2d collider stuck issue 1 Answer
Moving BoxCollider2d with animation is not the right way? 2 Answers