A downloadable Unity Package

Buy Now4.99€ EUR or more

DESCRIPTION

This asset allows you to convert your Polygon Collider 2D to MeshCollider with custom depth in editor or in runtime. 2D colliders to 3D colliders with minimal setup required.

The asset is in essence 2 scripts that allow conversion from PolygonCollider2D to Mesh Collider, it is fully customizable and source code is included.

An example scene serves as basic tutorial (You just put the script on a GameObject with a PolygonCollider2D and a sprite, and you can make the conversion via context menu or via code or just by hitting play on the game)

----------------------------------------------------------------------------

Version 1.03 UPDATE! (2024-10-02)

-Fixed a build bug by enclosing AssetDatabase uses with "#if UNITY_EDITOR". Thanks again to alexchouls for the report!

----------------------------------------------------------------------------

Version 1.02 UPDATE! (2024-09-28)

Thanks to alexchouls for reporting these to me! and thank you all for buying my plugin

-I added a fix that checks if the "SavedMeshData" folder exists and creates it if it does not

-Although not intended in the initial release, this fix also makes the mesh data usable as a regular mesh, Thanks to alexchouls for the idea!

----------------------------------------------------------------------------

Purchase

Buy Now4.99€ EUR or more

In order to download this Unity Package you must purchase it at or above the minimum price of 4.99€ EUR. You will get access to the following files:

Polygon Collider 2D to Mesh Collider v1.03.unitypackage 293 kB
Polygon Collider 2D to Mesh Collider v1.02.unitypackage 293 kB
Polygon Collider 2D to Mesh Collider v1.01.unitypackage 293 kB

Development log