Create a mesh from a PNG sprite

Hi all,

I found out that this question was already asked in the past but I did not find an answer yet, maybe things have evolved?

I have a png sprite that I use as a gameobject. It is using a Mesh Filter and a Mesh collider as a component. However I did not yet manage to get (through C# code) a mesh of that specific visible sprite from the png.

This is my png, what I am trying to do is get a mesh that has the same shape.
I’m in 3D so I cannot use PolygonCollider2D as it cannot be rotated…


For anyone seeing this in the future - take a look at PolygonCollider 2D, may help.

Hello, I guess you may be looking for this:

→ It was recently developed and may still have some problems.