Tiled Integration Plugin

Home / Tile Maps / Classes / UTITileMapInstance

UTITileMapInstance

Description

This is an instance of a UTITileMap 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

GetTileMap

C++ ✅ Blueprint ✅

Gets the Tile Map used by this Tile Map Instance.

Return

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

GetLayerInstance

C++ ✅ Blueprint ✅

Tries to get the Tile Layer Instance in the Tile Map Instance.

Arguments

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

FindLayerInstancesByName

C++ ✅ Blueprint ✅

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

Arguments

Return

GetLayersAmount

C++ ✅ Blueprint ✅

Gets the amount of Tile Layer Instances in this Tile Map Instance.

Return

GetTileMapComponent

C++ ✅ Blueprint ✅

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

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

IsInViewport

C++ ✅ Blueprint ✅

Checks if the Tile Map Instance is currently visible in the viewport.

Return

GetGroups

C++ ✅ Blueprint ✅

Get all the Tile Groups of the Tile Map by the specified Tile Set and Group ID.

Arguments

Return

ForEachLayerInstance

C++ ✅ Blueprint ✅

Calls the given callback once per Tile Layer Instance

Arguments

ForEachOccupiedTileInstance

C++ ✅ Blueprint ❌

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

Arguments

ForEachTileInstance

C++ ✅ Blueprint ❌

Calls the given callback once per tile coordinate within the Tile Map. The Tile Map Tile Instance 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

OnInstanced (Overrideable)

C++ ✅ Blueprint ✅

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

OnModified (Overrideable)

C++ ✅ Blueprint ✅

Called when the Tile Map Instance has been modified.

Arguments

OnPostLoad (Overrideable)

C++ ✅ Blueprint ✅

Called when the Tile Map Instance has been loaded.

OnTick (Overrideable)

C++ ✅ Blueprint ✅

Called when the Tile Map Instance ticks.

Arguments