.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/TileData.xml. .. _class_TileData: TileData ======== **Inherits:** :ref:`Object` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`bool` | :ref:`flip_h` | ``false`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`bool` | :ref:`flip_v` | ``false`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`Material` | :ref:`material` | | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`Color` | :ref:`modulate` | ``Color(1, 1, 1, 1)`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`float` | :ref:`probability` | ``1.0`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`int` | :ref:`terrain` | ``-1`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`int` | :ref:`terrain_set` | ``-1`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`Vector2i` | :ref:`texture_origin` | ``Vector2i(0, 0)`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`bool` | :ref:`transpose` | ``false`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`int` | :ref:`y_sort_origin` | ``0`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ | :ref:`int` | :ref:`z_index` | ``0`` | +---------------------------------+---------------------------------------------------------------+-----------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_collision_polygon` **(** :ref:`int` layer_id **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_collision_polygon_one_way_margin` **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`PackedVector2Array` | :ref:`get_collision_polygon_points` **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_collision_polygons_count` **(** :ref:`int` layer_id **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_constant_angular_velocity` **(** :ref:`int` layer_id **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_constant_linear_velocity` **(** :ref:`int` layer_id **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_custom_data` **(** :ref:`String` layer_name **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Variant` | :ref:`get_custom_data_by_layer_id` **(** :ref:`int` layer_id **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`NavigationPolygon` | :ref:`get_navigation_polygon` **(** :ref:`int` layer_id, :ref:`bool` flip_h=false, :ref:`bool` flip_v=false, :ref:`bool` transpose=false **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`OccluderPolygon2D` | :ref:`get_occluder` **(** :ref:`int` layer_id, :ref:`bool` flip_h=false, :ref:`bool` flip_v=false, :ref:`bool` transpose=false **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_terrain_peering_bit` **(** :ref:`CellNeighbor` peering_bit **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_collision_polygon_one_way` **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_valid_terrain_peering_bit` **(** :ref:`CellNeighbor` peering_bit **)** |const| | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_collision_polygon` **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_polygon_one_way` **(** :ref:`int` layer_id, :ref:`int` polygon_index, :ref:`bool` one_way **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_polygon_one_way_margin` **(** :ref:`int` layer_id, :ref:`int` polygon_index, :ref:`float` one_way_margin **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_polygon_points` **(** :ref:`int` layer_id, :ref:`int` polygon_index, :ref:`PackedVector2Array` polygon **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_collision_polygons_count` **(** :ref:`int` layer_id, :ref:`int` polygons_count **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_constant_angular_velocity` **(** :ref:`int` layer_id, :ref:`float` velocity **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_constant_linear_velocity` **(** :ref:`int` layer_id, :ref:`Vector2` velocity **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_custom_data` **(** :ref:`String` layer_name, :ref:`Variant` value **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_custom_data_by_layer_id` **(** :ref:`int` layer_id, :ref:`Variant` value **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_navigation_polygon` **(** :ref:`int` layer_id, :ref:`NavigationPolygon` navigation_polygon **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_occluder` **(** :ref:`int` layer_id, :ref:`OccluderPolygon2D` occluder_polygon **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_terrain_peering_bit` **(** :ref:`CellNeighbor` peering_bit, :ref:`int` terrain **)** | +-----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Signals ------- .. _class_TileData_signal_changed: .. rst-class:: classref-signal **changed** **(** **)** .. container:: contribute There is currently no description for this signal. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_TileData_property_flip_h: .. rst-class:: classref-property :ref:`bool` **flip_h** = ``false`` .. rst-class:: classref-property-setget - void **set_flip_h** **(** :ref:`bool` value **)** - :ref:`bool` **get_flip_h** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_flip_v: .. rst-class:: classref-property :ref:`bool` **flip_v** = ``false`` .. rst-class:: classref-property-setget - void **set_flip_v** **(** :ref:`bool` value **)** - :ref:`bool` **get_flip_v** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_material: .. rst-class:: classref-property :ref:`Material` **material** .. rst-class:: classref-property-setget - void **set_material** **(** :ref:`Material` value **)** - :ref:`Material` **get_material** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_modulate: .. rst-class:: classref-property :ref:`Color` **modulate** = ``Color(1, 1, 1, 1)`` .. rst-class:: classref-property-setget - void **set_modulate** **(** :ref:`Color` value **)** - :ref:`Color` **get_modulate** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_probability: .. rst-class:: classref-property :ref:`float` **probability** = ``1.0`` .. rst-class:: classref-property-setget - void **set_probability** **(** :ref:`float` value **)** - :ref:`float` **get_probability** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_terrain: .. rst-class:: classref-property :ref:`int` **terrain** = ``-1`` .. rst-class:: classref-property-setget - void **set_terrain** **(** :ref:`int` value **)** - :ref:`int` **get_terrain** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_terrain_set: .. rst-class:: classref-property :ref:`int` **terrain_set** = ``-1`` .. rst-class:: classref-property-setget - void **set_terrain_set** **(** :ref:`int` value **)** - :ref:`int` **get_terrain_set** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_texture_origin: .. rst-class:: classref-property :ref:`Vector2i` **texture_origin** = ``Vector2i(0, 0)`` .. rst-class:: classref-property-setget - void **set_texture_origin** **(** :ref:`Vector2i` value **)** - :ref:`Vector2i` **get_texture_origin** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_transpose: .. rst-class:: classref-property :ref:`bool` **transpose** = ``false`` .. rst-class:: classref-property-setget - void **set_transpose** **(** :ref:`bool` value **)** - :ref:`bool` **get_transpose** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_y_sort_origin: .. rst-class:: classref-property :ref:`int` **y_sort_origin** = ``0`` .. rst-class:: classref-property-setget - void **set_y_sort_origin** **(** :ref:`int` value **)** - :ref:`int` **get_y_sort_origin** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_property_z_index: .. rst-class:: classref-property :ref:`int` **z_index** = ``0`` .. rst-class:: classref-property-setget - void **set_z_index** **(** :ref:`int` value **)** - :ref:`int` **get_z_index** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_TileData_method_add_collision_polygon: .. rst-class:: classref-method void **add_collision_polygon** **(** :ref:`int` layer_id **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_collision_polygon_one_way_margin: .. rst-class:: classref-method :ref:`float` **get_collision_polygon_one_way_margin** **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_collision_polygon_points: .. rst-class:: classref-method :ref:`PackedVector2Array` **get_collision_polygon_points** **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_collision_polygons_count: .. rst-class:: classref-method :ref:`int` **get_collision_polygons_count** **(** :ref:`int` layer_id **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_constant_angular_velocity: .. rst-class:: classref-method :ref:`float` **get_constant_angular_velocity** **(** :ref:`int` layer_id **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_constant_linear_velocity: .. rst-class:: classref-method :ref:`Vector2` **get_constant_linear_velocity** **(** :ref:`int` layer_id **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_custom_data: .. rst-class:: classref-method :ref:`Variant` **get_custom_data** **(** :ref:`String` layer_name **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_custom_data_by_layer_id: .. rst-class:: classref-method :ref:`Variant` **get_custom_data_by_layer_id** **(** :ref:`int` layer_id **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_navigation_polygon: .. rst-class:: classref-method :ref:`NavigationPolygon` **get_navigation_polygon** **(** :ref:`int` layer_id, :ref:`bool` flip_h=false, :ref:`bool` flip_v=false, :ref:`bool` transpose=false **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_occluder: .. rst-class:: classref-method :ref:`OccluderPolygon2D` **get_occluder** **(** :ref:`int` layer_id, :ref:`bool` flip_h=false, :ref:`bool` flip_v=false, :ref:`bool` transpose=false **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_get_terrain_peering_bit: .. rst-class:: classref-method :ref:`int` **get_terrain_peering_bit** **(** :ref:`CellNeighbor` peering_bit **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_is_collision_polygon_one_way: .. rst-class:: classref-method :ref:`bool` **is_collision_polygon_one_way** **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_is_valid_terrain_peering_bit: .. rst-class:: classref-method :ref:`bool` **is_valid_terrain_peering_bit** **(** :ref:`CellNeighbor` peering_bit **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_remove_collision_polygon: .. rst-class:: classref-method void **remove_collision_polygon** **(** :ref:`int` layer_id, :ref:`int` polygon_index **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_collision_polygon_one_way: .. rst-class:: classref-method void **set_collision_polygon_one_way** **(** :ref:`int` layer_id, :ref:`int` polygon_index, :ref:`bool` one_way **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_collision_polygon_one_way_margin: .. rst-class:: classref-method void **set_collision_polygon_one_way_margin** **(** :ref:`int` layer_id, :ref:`int` polygon_index, :ref:`float` one_way_margin **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_collision_polygon_points: .. rst-class:: classref-method void **set_collision_polygon_points** **(** :ref:`int` layer_id, :ref:`int` polygon_index, :ref:`PackedVector2Array` polygon **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_collision_polygons_count: .. rst-class:: classref-method void **set_collision_polygons_count** **(** :ref:`int` layer_id, :ref:`int` polygons_count **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_constant_angular_velocity: .. rst-class:: classref-method void **set_constant_angular_velocity** **(** :ref:`int` layer_id, :ref:`float` velocity **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_constant_linear_velocity: .. rst-class:: classref-method void **set_constant_linear_velocity** **(** :ref:`int` layer_id, :ref:`Vector2` velocity **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_custom_data: .. rst-class:: classref-method void **set_custom_data** **(** :ref:`String` layer_name, :ref:`Variant` value **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_custom_data_by_layer_id: .. rst-class:: classref-method void **set_custom_data_by_layer_id** **(** :ref:`int` layer_id, :ref:`Variant` value **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_navigation_polygon: .. rst-class:: classref-method void **set_navigation_polygon** **(** :ref:`int` layer_id, :ref:`NavigationPolygon` navigation_polygon **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_occluder: .. rst-class:: classref-method void **set_occluder** **(** :ref:`int` layer_id, :ref:`OccluderPolygon2D` occluder_polygon **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_TileData_method_set_terrain_peering_bit: .. rst-class:: classref-method void **set_terrain_peering_bit** **(** :ref:`CellNeighbor` peering_bit, :ref:`int` terrain **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`