# Properties via Object Types?

**URL:** <https://discourse.mapeditor.org/t/properties-via-object-types/3074>\
**Category:** Questions\
**Created:** [March 16, 2018, 7:05pm UTC](https://discourse.mapeditor.org/t/properties-via-object-types/3074 "2018-03-16T19:05:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyFonager](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tonyfonager/32/1656_2.png) [@TonyFonager](https://discourse.mapeditor.org/u/TonyFonager)\
**Post date:** [March 16, 2018, 7:05pm UTC](https://discourse.mapeditor.org/t/properties-via-object-types/3074/1 "2018-03-16T19:05:35Z")

</div>

I use the Object Types Editor to define groups of custom properties.

But when I have added a Tile to the Object Layer and select fx. “Moveable” under the “Type”, I can see the new properties being added under “Custom properties”.

But when I save the map, and try to read properties for this tile on the Objects Layer, it has no properties ?

Shouldnt the properties selected by using “Type” be added to the Objects Layer definition for that tile ?

---

<div class="post-metadata">

**Author:** ![TonyFonager](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tonyfonager/32/1656_2.png) [@TonyFonager](https://discourse.mapeditor.org/u/TonyFonager)\
**Post date:** [March 16, 2018, 7:11pm UTC](https://discourse.mapeditor.org/t/properties-via-object-types/3074/2 "2018-03-16T19:11:51Z")

</div>

Ahhh, its because my properties for that particular tile comes from 1) Tile definition in TileSet and 2) Object Types definition, current only support as an export.

I guess I need to make my own loader fo those and apply them manually.

And remember to export the Object Types definition each time i change them.

Any reason for they are not included in the map ?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [March 16, 2018, 7:57pm UTC](https://discourse.mapeditor.org/t/properties-via-object-types/3074/3 "2018-03-16T19:57:58Z")

</div>

> [@TonyFonager](#):
>
> Any reason for they are not included in the map ?

Because that would be redundant. And also, because that would mean you have overridden those properties with different values. That said, I understand it can be useful to resolve all the properties on export, so the plan is to add an option for this. It is related to the following issue:

> <https://github.com/mapeditor/tiled/issues/1850>
>
> Apart from external images, a tiled map can currently depend on external tileset…s and external template files. It can be useful to embed such dependencies in the map file, either for compatibility reasons or to make deployment easier.
> 
> So the idea is to add the following export options:
> 
> \* Embed external tilesets
> \* Detach template instances
> \* Resolve object type and inherited tile properties (mentioned \[on the forum\](http://discourse.mapeditor.org/t/properties-via-object-types/3074/2?u=bjorn))
> 
> The latter option was \[requested\](http://discourse.mapeditor.org/t/ability-to-bake-objects-made-using-object-template-function-into-the-map-itself/2929) on the forum \[twice\](http://discourse.mapeditor.org/t/creating-a-template-for-tiles/21/8). And the former option was mentioned before at https://github.com/bjorn/tiled/issues/1091#issuecomment-266767410.

---

<div class="post-metadata">

**Author:** ![TonyFonager](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tonyfonager/32/1656_2.png) [@TonyFonager](https://discourse.mapeditor.org/u/TonyFonager)\
**Post date:** [March 16, 2018, 10:22pm UTC](https://discourse.mapeditor.org/t/properties-via-object-types/3074/4 "2018-03-16T22:22:20Z")

</div>

I just think at least a reference to the Object Types file like the tileset inside the map file, would be usefull.

Like in the Github issue 😉 thanks

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [September 12, 2018, 9:43pm UTC](https://discourse.mapeditor.org/t/properties-via-object-types/3074/5 "2018-09-12T21:43:16Z")

</div>

Just noting that the above options are in the meantime available [in the development snapshots](https://thorbjorn.itch.io/tiled/devlog/43780/export-options-and-polishing) and will be in Tiled 1.2.
