Tiled Integration Plugin

Home / Tile Layers / Classes / UTITileLayer

UTITileLayer

Description

This is the Tile Layer in a Tile Map asset that was imported from Tiled and can only be modified from Tiled when importing or reimporting.

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

ForEachTile

C++ ✅ Blueprint ❌

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

Arguments

ForEachOccupiedTile

C++ ✅ Blueprint ❌

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

Arguments

GetNumOccupiedTiles

C++ ✅ Blueprint ❌

Gets the amount of Tiles in this Tile Layer.

Return

GetElevation

C++ ✅ Blueprint ❌

Gets the Tile Layer elevation (specified on the Custom Properties or by the layer order)

Return

GetElevationOffset

C++ ✅ Blueprint ❌

Gets the Tile Layer elevation offset (specified on the Custom Properties)

Return

GetCustomProperties

C++ ✅ Blueprint ✅

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

Return

GetTile

C++ ✅ Blueprint ✅

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

Arguments

Return

GetTileMap

C++ ✅ Blueprint ✅

Gets the Tile Map that contains this Tile Layer.

Return

GetLayerIndex

C++ ✅ Blueprint ✅

Gets the Tile Layer index.

Return

IsCollisionEnabled

C++ ✅ Blueprint ✅

Check if the collision is enabled for this Tile Layer (set up from the Custom Properties).

Return

IsHidden

C++ ✅ Blueprint ✅

Check if the Tile Layer is hidden.

Return

GetCollisionThickness

C++ ✅ Blueprint ✅

Gets the Tile Layer collision thickness (set up from the Custom Properties).

Return

GetCollisionThickness

C++ ✅ Blueprint ✅

Gets the Tile Layer collision offset (set up from the Custom Properties).

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 Custom Properties have been loaded.

Arguments

OnImported (Overrideable)

C++ ✅ Blueprint ✅

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