Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
TileData¶
Inherits: Object
Settings for a single tile in a TileSet.
Description¶
TileData object represents a single tile in a TileSet. It is usually edited using the tileset editor, but it can be modified at runtime using TileMap._tile_data_runtime_update.
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
Signals¶
changed ( )
Emitted when any of the properties are changed.
Property Descriptions¶
bool flip_h = false
If true
, the tile will have its texture flipped horizontally.
bool flip_v = false
If true
, the tile will have its texture flipped vertically.
Material material
The Material to use for this TileData. This can be a CanvasItemMaterial to use the default shader, or a ShaderMaterial to use a custom shader.
Color modulate = Color(1, 1, 1, 1)
Color modulation of the tile.
float probability = 1.0
Relative probability of this tile being selected when drawing a pattern of random tiles.
int terrain = -1
ID of the terrain from the terrain set that the tile uses.
int terrain_set = -1
ID of the terrain set that the tile uses.
Vector2i texture_origin = Vector2i(0, 0)
Offsets the position of where the tile is drawn.
bool transpose = false
If true
, the tile will display transposed, i.e. with horizontal and vertical texture UVs swapped.
int y_sort_origin = 0
Vertical point of the tile used for determining y-sorted order.
int z_index = 0
void set_z_index