Cammin / LDtkToUnity

Unity importer for the LDtk level editor
https://cammin.github.io/LDtkToUnity
MIT License
381 stars 38 forks source link

composite collider #18

Closed Parachutexd closed 3 years ago

Parachutexd commented 3 years ago

Hey Cammin, GREAT WORK! Your 2.0 version just brings LDtktoUnity into another level! Just one quick question, can I generate Composite Collider 2D by default instead of only Tilemap Collider 2D?

Cammin commented 3 years ago

Yes, this is something I have planned to add soon, actually. It's definitely useful for preventing lag in the editor, particularly when trying to move a level in the GridVania sample.

For the current moment, you can add a composite collider 2d to the tilemap GameObjects into the scene, but I understand it's some manual work. 😅

I'll let you know when this feature gets added. Thanks for the kind words 🙂

Cammin commented 3 years ago

Add option to add a compositecollider2d

Parachutexd commented 3 years ago

Great! Thank you very much!

Cammin commented 3 years ago

I just pushed an update that adds a toggle for a CompositeCollider2D. Let me know what you think. image

It's in version 2.0.4: https://github.com/Cammin/LDtkUnity/blob/master/Assets/LDtkUnity/CHANGELOG.md

Closing this issue. Feel free to reopen if necessary. 🙂

Parachutexd commented 3 years ago

Awesome! It works perfectly for me. Thanks for your effort!