unreal.PaperTileSet

class unreal.PaperTileSet(outer=None, name='None')

Bases: unreal.Object

A tile set is a collection of tiles pulled from a texture that can be used to fill out a tile map. see: UPaperTileMap, UPaperTileMapComponent

C++ Source:

  • Plugin: Paper2D

  • Module: Paper2D

  • File: PaperTileSet.h

Editor Properties: (see get_editor_property/set_editor_property)

  • additional_source_textures (Array(Texture)): [Read-Write] Additional Source Textures: Additional source textures for other slots

  • background_color (LinearColor): [Read-Write] Background Color: The background color displayed in the tile set viewer

  • border_margin (IntMargin): [Read-Write] Border Margin: The amount of padding around the border of the tile sheet (in pixels)

  • drawing_offset (IntPoint): [Read-Write] Drawing Offset: The drawing offset for tiles from this set (in pixels)

  • per_tile_data (Array(PaperTileMetadata)): [Read-Write] Per Tile Data: Per-tile information

  • per_tile_spacing (IntPoint): [Read-Write] Per Tile Spacing: The amount of padding between tiles in the tile sheet (in pixels)

  • tile_sheet (Texture2D): [Read-Write] Tile Sheet: The tile sheet texture associated with this tile set

  • tile_size (IntPoint): [Read-Write] Tile Size: The width and height of a single tile (in pixels)

property border_margin

[Read-Only] Border Margin: The amount of padding around the border of the tile sheet (in pixels)

Type

(IntMargin)

property drawing_offset

[Read-Only] Drawing Offset: The drawing offset for tiles from this set (in pixels)

Type

(IntPoint)

property per_tile_spacing

[Read-Only] Per Tile Spacing: The amount of padding between tiles in the tile sheet (in pixels)

Type

(IntPoint)

property tile_sheet

[Read-Only] Tile Sheet: The tile sheet texture associated with this tile set

Type

(Texture2D)

property tile_size

[Read-Only] Tile Size: The width and height of a single tile (in pixels)

Type

(IntPoint)