Tiled Integration Plugin

Home / Tile Layers / Classes / UTITileLayerInstance

UTITileLayerInstance

Description

This is an instance of a UTITileLayer that will get created when you add the asset to a level and can be modified at runtime (for example, by adding/removing tiles)

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

GetTile

C++Blueprint

Gets the Tile Layer asset for the layer instance.

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

GetTileInstance

C++Blueprint

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

Arguments

Return

SetTileInstance

C++Blueprint

Sets a Tile Map Tile Instance in the given coordinates.

Arguments

Return

UnsetTileInstance

C++Blueprint

Removes a Tile Map Tile Instance from the given coordinates.

Arguments

GetTileMapComponent

C++Blueprint

Gets the Tile Map Component used by this Tile Layer Instance.

Return

GetTileMapInstance

C++Blueprint

Gets the Tile Map Instance that contains this Tile Layer Instance.

Return

GetLayerName

C++Blueprint

Gets the name of 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

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

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

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

OnInstanced (Overrideable)

C++Blueprint

Called when the Tile Layer Instance has been added to a level.

OnModified (Overrideable)

C++Blueprint

Called when the Tile Layer Instance has been modified.

Arguments

OnPostLoad (Overrideable)

C++Blueprint

Called when the Tile Layer Instance has been loaded.

OnTick (Overrideable)

C++Blueprint

Called when the Tile Layer Instance ticks.

Arguments