Tiled Integration Plugin

Home / Tile Maps / Custom Properties

Custom Properties

Custom Properties is a feature from the Tiled Map Editor that allows you to store any kind of information on a Tile Map for later use in your project. This plugin allows accessing this information from your Unreal Engine project at any moment either from Blueprints or from C++.

To access the Custom Properties of your Tile Map:

1.- Get a reference to the UTITileMapInstance placed in your level and use the GetCustomProperties method

2.- From the UTICustomProperties class you will be able to access the Custom Properties by type:

Class Properties

When working with custom property classes it can get quite time consuming to get the class and then the property you want from code/blueprint, for that reason a shortcut system has been implement to access the properties under the classes directly.

In order to do that you need to write the property name as the following format ClassPropertyName.PropertyName where:

E.g. Let’s assume we have a class called Point which has two integers under it X and Y. In order to directly access X from the Point class, we would write the name of the property as Point.X on the getter method.

E.g.2. Let’s assume we have a class Shape with the previous class Point inside. In order to directly access X from the Shape class, we would write the name of the property as Shape.Point.X on the getter method.

Unreal Engine Properties

You can also specify some Unreal Engine properties for the Tile Map from Tiled, which will automatically set it on the imported asset.

Here is the list of custom properties that you can set up on your Tile Map:

A predefined set of Custom Properties is available to download and apply to your Tiled project, which includes all the above properties. You can set it up by following this guide:

1.- Download the predefined custom properties from here

2.- Open the Custom Types Editor in View > Custom Types Editor, click on Import on the top right corner and select the previously downloaded file.

3.- To apply the properties to your map, open the Tile Map Properties in Map > Map Properties and set the class to Map. You should see new custom properties show for your map.