class_tileset.rst 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the TileSet.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_TileSet:
  5. TileSet
  6. =======
  7. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Tile library for tilemaps.
  12. Member Functions
  13. ----------------
  14. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`Vector2<class_vector2>` | :ref:`_forward_subtile_selection<class_TileSet__forward_subtile_selection>` **(** :ref:`int<class_int>` autotile_id, :ref:`int<class_int>` bitmask, :ref:`Object<class_object>` tilemap, :ref:`Vector2<class_vector2>` tile_location **)** virtual |
  16. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`_is_tile_bound<class_TileSet__is_tile_bound>` **(** :ref:`int<class_int>` drawn_id, :ref:`int<class_int>` neighbor_id **)** virtual |
  18. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`autotile_get_bitmask_mode<class_TileSet_autotile_get_bitmask_mode>` **(** :ref:`int<class_int>` id **)** const |
  20. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`autotile_set_bitmask_mode<class_TileSet_autotile_set_bitmask_mode>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` mode **)** |
  22. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`clear<class_TileSet_clear>` **(** **)** |
  24. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`create_tile<class_TileSet_create_tile>` **(** :ref:`int<class_int>` id **)** |
  26. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`find_tile_by_name<class_TileSet_find_tile_by_name>` **(** :ref:`String<class_string>` name **)** const |
  28. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`int<class_int>` | :ref:`get_last_unused_tile_id<class_TileSet_get_last_unused_tile_id>` **(** **)** const |
  30. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Array<class_array>` | :ref:`get_tiles_ids<class_TileSet_get_tiles_ids>` **(** **)** const |
  32. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | void | :ref:`remove_tile<class_TileSet_remove_tile>` **(** :ref:`int<class_int>` id **)** |
  34. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`tile_add_shape<class_TileSet_tile_add_shape>` **(** :ref:`int<class_int>` id, :ref:`Shape2D<class_shape2d>` shape, :ref:`Transform2D<class_transform2d>` shape_transform, :ref:`bool<class_bool>` one_way=false, :ref:`Vector2<class_vector2>` autotile_coord=Vector2( 0, 0 ) **)** |
  36. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`OccluderPolygon2D<class_occluderpolygon2d>` | :ref:`tile_get_light_occluder<class_TileSet_tile_get_light_occluder>` **(** :ref:`int<class_int>` id **)** const |
  38. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`ShaderMaterial<class_shadermaterial>` | :ref:`tile_get_material<class_TileSet_tile_get_material>` **(** :ref:`int<class_int>` id **)** const |
  40. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`String<class_string>` | :ref:`tile_get_name<class_TileSet_tile_get_name>` **(** :ref:`int<class_int>` id **)** const |
  42. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`NavigationPolygon<class_navigationpolygon>` | :ref:`tile_get_navigation_polygon<class_TileSet_tile_get_navigation_polygon>` **(** :ref:`int<class_int>` id **)** const |
  44. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`Vector2<class_vector2>` | :ref:`tile_get_navigation_polygon_offset<class_TileSet_tile_get_navigation_polygon_offset>` **(** :ref:`int<class_int>` id **)** const |
  46. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`Texture<class_texture>` | :ref:`tile_get_normal_map<class_TileSet_tile_get_normal_map>` **(** :ref:`int<class_int>` id **)** const |
  48. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`Vector2<class_vector2>` | :ref:`tile_get_occluder_offset<class_TileSet_tile_get_occluder_offset>` **(** :ref:`int<class_int>` id **)** const |
  50. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`Rect2<class_rect2>` | :ref:`tile_get_region<class_TileSet_tile_get_region>` **(** :ref:`int<class_int>` id **)** const |
  52. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`Shape2D<class_shape2d>` | :ref:`tile_get_shape<class_TileSet_tile_get_shape>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id **)** const |
  54. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`tile_get_shape_count<class_TileSet_tile_get_shape_count>` **(** :ref:`int<class_int>` id **)** const |
  56. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`bool<class_bool>` | :ref:`tile_get_shape_one_way<class_TileSet_tile_get_shape_one_way>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id **)** const |
  58. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`Transform2D<class_transform2d>` | :ref:`tile_get_shape_transform<class_TileSet_tile_get_shape_transform>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id **)** const |
  60. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Array<class_array>` | :ref:`tile_get_shapes<class_TileSet_tile_get_shapes>` **(** :ref:`int<class_int>` id **)** const |
  62. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`Texture<class_texture>` | :ref:`tile_get_texture<class_TileSet_tile_get_texture>` **(** :ref:`int<class_int>` id **)** const |
  64. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`Vector2<class_vector2>` | :ref:`tile_get_texture_offset<class_TileSet_tile_get_texture_offset>` **(** :ref:`int<class_int>` id **)** const |
  66. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`tile_set_light_occluder<class_TileSet_tile_set_light_occluder>` **(** :ref:`int<class_int>` id, :ref:`OccluderPolygon2D<class_occluderpolygon2d>` light_occluder **)** |
  68. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`tile_set_material<class_TileSet_tile_set_material>` **(** :ref:`int<class_int>` id, :ref:`ShaderMaterial<class_shadermaterial>` material **)** |
  70. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`tile_set_name<class_TileSet_tile_set_name>` **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)** |
  72. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`tile_set_navigation_polygon<class_TileSet_tile_set_navigation_polygon>` **(** :ref:`int<class_int>` id, :ref:`NavigationPolygon<class_navigationpolygon>` navigation_polygon **)** |
  74. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`tile_set_navigation_polygon_offset<class_TileSet_tile_set_navigation_polygon_offset>` **(** :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` navigation_polygon_offset **)** |
  76. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`tile_set_normal_map<class_TileSet_tile_set_normal_map>` **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` normal_map **)** |
  78. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`tile_set_occluder_offset<class_TileSet_tile_set_occluder_offset>` **(** :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` occluder_offset **)** |
  80. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`tile_set_region<class_TileSet_tile_set_region>` **(** :ref:`int<class_int>` id, :ref:`Rect2<class_rect2>` region **)** |
  82. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`tile_set_shape<class_TileSet_tile_set_shape>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id, :ref:`Shape2D<class_shape2d>` shape **)** |
  84. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`tile_set_shape_one_way<class_TileSet_tile_set_shape_one_way>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id, :ref:`bool<class_bool>` one_way **)** |
  86. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`tile_set_shape_transform<class_TileSet_tile_set_shape_transform>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id, :ref:`Transform2D<class_transform2d>` shape_transform **)** |
  88. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | void | :ref:`tile_set_shapes<class_TileSet_tile_set_shapes>` **(** :ref:`int<class_int>` id, :ref:`Array<class_array>` shapes **)** |
  90. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | void | :ref:`tile_set_texture<class_TileSet_tile_set_texture>` **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` texture **)** |
  92. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | void | :ref:`tile_set_texture_offset<class_TileSet_tile_set_texture_offset>` **(** :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` texture_offset **)** |
  94. +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. Enums
  96. -----
  97. .. _enum_TileSet_BitmaskMode:
  98. enum **BitmaskMode**
  99. - **BITMASK_2X2** = **0**
  100. - **BITMASK_3X3** = **1**
  101. .. _enum_TileSet_AutotileBindings:
  102. enum **AutotileBindings**
  103. - **BIND_TOPLEFT** = **1**
  104. - **BIND_TOP** = **2**
  105. - **BIND_TOPRIGHT** = **4**
  106. - **BIND_LEFT** = **8**
  107. - **BIND_RIGHT** = **32**
  108. - **BIND_BOTTOMLEFT** = **64**
  109. - **BIND_BOTTOM** = **128**
  110. - **BIND_BOTTOMRIGHT** = **256**
  111. Description
  112. -----------
  113. A TileSet is a library of tiles for a :ref:`TileMap<class_tilemap>`. It contains a list of tiles, each consisting of a sprite and optional collision shapes.
  114. Tiles are referenced by a unique integer ID.
  115. Member Function Description
  116. ---------------------------
  117. .. _class_TileSet__forward_subtile_selection:
  118. - :ref:`Vector2<class_vector2>` **_forward_subtile_selection** **(** :ref:`int<class_int>` autotile_id, :ref:`int<class_int>` bitmask, :ref:`Object<class_object>` tilemap, :ref:`Vector2<class_vector2>` tile_location **)** virtual
  119. .. _class_TileSet__is_tile_bound:
  120. - :ref:`bool<class_bool>` **_is_tile_bound** **(** :ref:`int<class_int>` drawn_id, :ref:`int<class_int>` neighbor_id **)** virtual
  121. .. _class_TileSet_autotile_get_bitmask_mode:
  122. - :ref:`int<class_int>` **autotile_get_bitmask_mode** **(** :ref:`int<class_int>` id **)** const
  123. .. _class_TileSet_autotile_set_bitmask_mode:
  124. - void **autotile_set_bitmask_mode** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` mode **)**
  125. .. _class_TileSet_clear:
  126. - void **clear** **(** **)**
  127. Clear all tiles.
  128. .. _class_TileSet_create_tile:
  129. - void **create_tile** **(** :ref:`int<class_int>` id **)**
  130. Create a new tile which will be referenced by the given ID.
  131. .. _class_TileSet_find_tile_by_name:
  132. - :ref:`int<class_int>` **find_tile_by_name** **(** :ref:`String<class_string>` name **)** const
  133. Find the first tile matching the given name.
  134. .. _class_TileSet_get_last_unused_tile_id:
  135. - :ref:`int<class_int>` **get_last_unused_tile_id** **(** **)** const
  136. Return the ID following the last currently used ID, useful when creating a new tile.
  137. .. _class_TileSet_get_tiles_ids:
  138. - :ref:`Array<class_array>` **get_tiles_ids** **(** **)** const
  139. Return an array of all currently used tile IDs.
  140. .. _class_TileSet_remove_tile:
  141. - void **remove_tile** **(** :ref:`int<class_int>` id **)**
  142. Remove the tile referenced by the given ID.
  143. .. _class_TileSet_tile_add_shape:
  144. - void **tile_add_shape** **(** :ref:`int<class_int>` id, :ref:`Shape2D<class_shape2d>` shape, :ref:`Transform2D<class_transform2d>` shape_transform, :ref:`bool<class_bool>` one_way=false, :ref:`Vector2<class_vector2>` autotile_coord=Vector2( 0, 0 ) **)**
  145. .. _class_TileSet_tile_get_light_occluder:
  146. - :ref:`OccluderPolygon2D<class_occluderpolygon2d>` **tile_get_light_occluder** **(** :ref:`int<class_int>` id **)** const
  147. Return the light occluder of the tile.
  148. .. _class_TileSet_tile_get_material:
  149. - :ref:`ShaderMaterial<class_shadermaterial>` **tile_get_material** **(** :ref:`int<class_int>` id **)** const
  150. Return the material of the tile.
  151. .. _class_TileSet_tile_get_name:
  152. - :ref:`String<class_string>` **tile_get_name** **(** :ref:`int<class_int>` id **)** const
  153. Return the name of the tile.
  154. .. _class_TileSet_tile_get_navigation_polygon:
  155. - :ref:`NavigationPolygon<class_navigationpolygon>` **tile_get_navigation_polygon** **(** :ref:`int<class_int>` id **)** const
  156. Return the navigation polygon of the tile.
  157. .. _class_TileSet_tile_get_navigation_polygon_offset:
  158. - :ref:`Vector2<class_vector2>` **tile_get_navigation_polygon_offset** **(** :ref:`int<class_int>` id **)** const
  159. Return the offset of the tile's navigation polygon.
  160. .. _class_TileSet_tile_get_normal_map:
  161. - :ref:`Texture<class_texture>` **tile_get_normal_map** **(** :ref:`int<class_int>` id **)** const
  162. .. _class_TileSet_tile_get_occluder_offset:
  163. - :ref:`Vector2<class_vector2>` **tile_get_occluder_offset** **(** :ref:`int<class_int>` id **)** const
  164. Return the offset of the tile's light occluder.
  165. .. _class_TileSet_tile_get_region:
  166. - :ref:`Rect2<class_rect2>` **tile_get_region** **(** :ref:`int<class_int>` id **)** const
  167. Return the tile sub-region in the texture.
  168. .. _class_TileSet_tile_get_shape:
  169. - :ref:`Shape2D<class_shape2d>` **tile_get_shape** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id **)** const
  170. .. _class_TileSet_tile_get_shape_count:
  171. - :ref:`int<class_int>` **tile_get_shape_count** **(** :ref:`int<class_int>` id **)** const
  172. .. _class_TileSet_tile_get_shape_one_way:
  173. - :ref:`bool<class_bool>` **tile_get_shape_one_way** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id **)** const
  174. .. _class_TileSet_tile_get_shape_transform:
  175. - :ref:`Transform2D<class_transform2d>` **tile_get_shape_transform** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id **)** const
  176. .. _class_TileSet_tile_get_shapes:
  177. - :ref:`Array<class_array>` **tile_get_shapes** **(** :ref:`int<class_int>` id **)** const
  178. Return the array of shapes of the tile.
  179. .. _class_TileSet_tile_get_texture:
  180. - :ref:`Texture<class_texture>` **tile_get_texture** **(** :ref:`int<class_int>` id **)** const
  181. Return the texture of the tile.
  182. .. _class_TileSet_tile_get_texture_offset:
  183. - :ref:`Vector2<class_vector2>` **tile_get_texture_offset** **(** :ref:`int<class_int>` id **)** const
  184. Return the texture offset of the tile.
  185. .. _class_TileSet_tile_set_light_occluder:
  186. - void **tile_set_light_occluder** **(** :ref:`int<class_int>` id, :ref:`OccluderPolygon2D<class_occluderpolygon2d>` light_occluder **)**
  187. Set a light occluder for the tile.
  188. .. _class_TileSet_tile_set_material:
  189. - void **tile_set_material** **(** :ref:`int<class_int>` id, :ref:`ShaderMaterial<class_shadermaterial>` material **)**
  190. Set the material of the tile.
  191. .. _class_TileSet_tile_set_name:
  192. - void **tile_set_name** **(** :ref:`int<class_int>` id, :ref:`String<class_string>` name **)**
  193. Set the name of the tile, for descriptive purposes.
  194. .. _class_TileSet_tile_set_navigation_polygon:
  195. - void **tile_set_navigation_polygon** **(** :ref:`int<class_int>` id, :ref:`NavigationPolygon<class_navigationpolygon>` navigation_polygon **)**
  196. Set a navigation polygon for the tile.
  197. .. _class_TileSet_tile_set_navigation_polygon_offset:
  198. - void **tile_set_navigation_polygon_offset** **(** :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` navigation_polygon_offset **)**
  199. Set an offset for the tile's navigation polygon.
  200. .. _class_TileSet_tile_set_normal_map:
  201. - void **tile_set_normal_map** **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` normal_map **)**
  202. .. _class_TileSet_tile_set_occluder_offset:
  203. - void **tile_set_occluder_offset** **(** :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` occluder_offset **)**
  204. Set an offset for the tile's light occluder.
  205. .. _class_TileSet_tile_set_region:
  206. - void **tile_set_region** **(** :ref:`int<class_int>` id, :ref:`Rect2<class_rect2>` region **)**
  207. Set the tile sub-region in the texture. This is common in texture atlases.
  208. .. _class_TileSet_tile_set_shape:
  209. - void **tile_set_shape** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id, :ref:`Shape2D<class_shape2d>` shape **)**
  210. .. _class_TileSet_tile_set_shape_one_way:
  211. - void **tile_set_shape_one_way** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id, :ref:`bool<class_bool>` one_way **)**
  212. .. _class_TileSet_tile_set_shape_transform:
  213. - void **tile_set_shape_transform** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` shape_id, :ref:`Transform2D<class_transform2d>` shape_transform **)**
  214. .. _class_TileSet_tile_set_shapes:
  215. - void **tile_set_shapes** **(** :ref:`int<class_int>` id, :ref:`Array<class_array>` shapes **)**
  216. Set an array of shapes for the tile, enabling physics to collide with it.
  217. .. _class_TileSet_tile_set_texture:
  218. - void **tile_set_texture** **(** :ref:`int<class_int>` id, :ref:`Texture<class_texture>` texture **)**
  219. Set the texture of the tile.
  220. .. _class_TileSet_tile_set_texture_offset:
  221. - void **tile_set_texture_offset** **(** :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` texture_offset **)**
  222. Set the texture offset of the tile.