Home / Tile Sets / Classes / UTITileSet
UTITileSet
Description
This is the Tile Set asset that was imported from Tiled which contain a list of Tile Set Tiles 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 index within the Tile Set. The Tile Set Tile returned may be null.
Arguments
- Callback: The function/lambda to be called per tile index.
- Reversed: Set to true to change the order from last to first. If false the order will be from first to last.
GetTile
C++ ✅ Blueprint ✅
Tries to get the Tile Set Tile stored in the specified index.
Arguments
- TileIndex: The tile index within the Tile Set.
Return
- UTITileSetTile*: The Tile Set Tile if there is a Tile in that tile index, or null if it doesn’t contain any Tiles.
GetCustomProperties
C++ ✅ Blueprint ✅
Gets the Custom Properties of the Tile Set, where you can access all the individual properties stored for the Tile Set.
Return
- UTICustomProperties*: The Custom Properties of the Tile Set.
OnCustomPropertiesLoaded (Overrideable)
C++ ✅ Blueprint ✅
Called when the Tile Map Custom Properties have been loaded.
Arguments
- Properties: Custom Properties loaded.
OnImported (Overrideable)
C++ ✅ Blueprint ✅
Called when the Tile Map has been imported by the plugin.