unreal.TileMapLibrary
¶
-
class
unreal.
TileMapLibrary
(outer=None, name='None')¶ Bases:
unreal.BlueprintFunctionLibrary
A collection of utility methods for working with tile map components UPaperTileMap, UPaperTileMapComponent:
C++ Source:
Plugin: Paper2D
Module: Paper2D
File: TileMapBlueprintLibrary.h
-
classmethod
break_tile
(tile) -> (tile_index=int32, tile_set=PaperTileSet, flip_h=bool, flip_v=bool, flip_d=bool)¶ Breaks out the information for a tile
- Parameters
tile (PaperTileInfo) –
- Returns
tile_index (int32):
tile_set (PaperTileSet):
flip_h (bool):
flip_v (bool):
flip_d (bool):
- Return type
tuple
-
classmethod
get_tile_transform
(tile) → Transform¶ Returns the transform for a tile
- Parameters
tile (PaperTileInfo) –
- Returns
- Return type
-
classmethod
get_tile_user_data
(tile) → Name¶ Returns the user data name for the specified tile, or NAME_None if there is no user-specified data
- Parameters
tile (PaperTileInfo) –
- Returns
- Return type
-
classmethod
make_tile
(tile_index, tile_set, flip_h, flip_v, flip_d) → PaperTileInfo¶ Creates a tile from the specified information
- Parameters
tile_index (int32) –
tile_set (PaperTileSet) –
flip_h (bool) –
flip_v (bool) –
flip_d (bool) –
- Returns
- Return type