# Set an polygon object to be a trigger collider in Unity

**URL:** <https://discourse.mapeditor.org/t/set-an-polygon-object-to-be-a-trigger-collider-in-unity/6291>\
**Category:** Questions\
**Created:** [August 8, 2023, 8:27am UTC](https://discourse.mapeditor.org/t/set-an-polygon-object-to-be-a-trigger-collider-in-unity/6291 "2023-08-08T08:27:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pere\_Alberti\_Aguilo](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/pere_alberti_aguilo/32/4220_2.png) [@Pere\_Alberti\_Aguilo](https://discourse.mapeditor.org/u/Pere_Alberti_Aguilo)\
**Post date:** [August 8, 2023, 8:27am UTC](https://discourse.mapeditor.org/t/set-an-polygon-object-to-be-a-trigger-collider-in-unity/6291/1 "2023-08-08T08:27:33Z")

</div>

Is it posible to make so a polygon object is detected as a trigger collider when exported to unity?

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [August 8, 2023, 12:26pm UTC](https://discourse.mapeditor.org/t/set-an-polygon-object-to-be-a-trigger-collider-in-unity/6291/2 "2023-08-08T12:26:56Z")

</div>

Nitpick: Tiled does not _export_ to Unity. If you’re using SuperTiled2Unity, that is an _importer_ in Unity, and it imports regular Tiled files.

ST2U doesn’t seem to have any special facility for making trigger colliders, but you should be able to achieve it by using either prefab replacement to replace certain objects with a trigger prefab (not ideal for poylgons that vary), or by using a custom importer that creates trigger colliders when it encounters certain objects. Both of these methods are documented [in the ST2U docs here](https://supertiled2unity.readthedocs.io/en/latest/manual/extending-the-importer.html).
