Settings for a single tile in a TileSet.
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 TileMapLayer._tile_data_runtime_update().
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.
Returns the one-way margin (for one-way platforms) of the polygon at index polygon_index for TileSet physics layer with index layer_id.
Returns the points of the polygon at index polygon_index for TileSet physics layer with index layer_id.
Returns the custom data value for custom data layer named layer_name. To check if a custom data layer exists, use has_custom_data().
Returns the occluder polygon of the tile for the TileSet occlusion layer with index layer_id.
flip_h, flip_v, and transpose allow transforming the returned polygon.
Returns the occluder polygon at index polygon_index from the TileSet occlusion layer with index layer_id.
The flip_h, flip_v, and transpose parameters can be true to transform the returned polygon.
Returns the number of occluder polygons of the tile in the TileSet occlusion layer with index layer_id.
Returns the tile's terrain bit for the given peering_bit direction. To check that a direction is valid, use is_valid_terrain_peering_bit().
Returns whether one-way collisions are enabled for the polygon at index polygon_index for TileSet physics layer with index layer_id.
Enables/disables one-way collisions on the polygon at index polygon_index for TileSet physics layer with index layer_id.
Sets the one-way margin (for one-way platforms) of the polygon at index polygon_index for TileSet physics layer with index layer_id.
Sets the points of the polygon at index polygon_index for TileSet physics layer with index layer_id.
Sets the constant angular velocity. This does not rotate the tile. This angular velocity is applied to objects colliding with this tile.
Sets the constant linear velocity. This does not move the tile. This linear velocity is applied to objects colliding with this tile. This is useful to create conveyor belts.
Sets the occluder for polygon with index polygon_index in the TileSet occlusion layer with index layer_id.
Sets the tile's terrain bit for the given peering_bit direction. To check that a direction is valid, use is_valid_terrain_peering_bit().