Tiled Integration Plugin

Home / Tile Maps / Classes / UTITileMap

UTITileMap

Description

This class represents the actual tile map asset that has been imported from a Tiled Tile Map file and can only be modified from the Tiled Map Editor software and later imported/reimported to Unreal Engine.

Extend Class

If you want to extend the class either via C++ or Blueprint, you can specify in the Plugin Settings what class the plugin should use, instead of the default one. Keep in mind that your class must be a child class from the original one you want to extend.

Note: Setting a new class override to be used by the plugin won’t be applied to previously imported assets, you will have to delete and import the already existing assets after the settings have been changed.

Functions

GetCustomProperties

C++Blueprint

Gets the Custom Properties of the Tile Map, where you can access all the individual properties stored for the Tile Map.

Return

GetTile

C++Blueprint

Tries to get the Tile Map Tile stored in the specified coordinates.

Arguments

Return

GetLayer

C++Blueprint

Tries to get the Tile Layer in the Tile Map.

Arguments

Return

FindLayersByName

C++Blueprint

Retrieves a list of Tile Layers whose names match the one specified. The search is case sensitive.

Arguments

Return

GetLayersAmount

C++Blueprint

Gets the amount of Tile Layers in this Tile Map.

Return

GetTileWidth

C++Blueprint

Gets the width (in pixels) of an individual Tile. (All tiles in the Tile Map have the same width)

Return

GetTileHeight

C++Blueprint

Gets the height in pixels of an individual Tile. (All tiles in the Tile Map have the same height)

Return

GetMapWidth

C++Blueprint

Gets the amount of Tiles that can fit horizontally in the Tile Map.

Return

GetMapHeight

C++Blueprint

Gets the amount of Tiles that can fit vertically in the Tile Map.

Return

GetProjectionMode

C++Blueprint

Gets the projection mode of the Tile Map.

Return

ForEachLayer

C++Blueprint

Calls the given callback once per Tile Layer

Arguments

ForEachOccupiedTile

C++Blueprint

Calls the given callback once per Tile Map Tile stored in the Tile Map.

Arguments

ForEachTile

C++Blueprint

Calls the given callback once per tile coordinate within the Tile Map. The Tile Map Tile returned may be null.

Arguments

GetTilePositionInLocalSpace

C++Blueprint

Gets the local position of the given tile coordinates relative to the Tile Map.

Arguments

Return

GetTileSeparation (Overrideable)

C++Blueprint

Gets how high the given tile is, used for sorting the tile rendering.

Arguments

Return

TileCoordinatesToTileIndex

C++Blueprint

Converts the given tile coordinates to tile index.

Arguments

Return

TileIndexToTileCoordinates

C++Blueprint

Converts the given tile index to tile coordinates.

Arguments

Return

OnCustomPropertiesLoaded (Overrideable)

C++Blueprint

Called when the Tile Map Custom Properties have been loaded.

Arguments

OnImported (Overrideable)

C++Blueprint

Called when the Tile Map has been imported by the plugin.