Merge pull request #72129 from groud/unclamp_texture_origin
Rename texture_offset and unclamp it
This commit is contained in:
commit
525db733c8
11 changed files with 126 additions and 87 deletions
|
|
@ -218,7 +218,7 @@
|
|||
<member name="terrain_set" type="int" setter="set_terrain_set" getter="get_terrain_set" default="-1">
|
||||
ID of the terrain set that the tile uses.
|
||||
</member>
|
||||
<member name="texture_offset" type="Vector2i" setter="set_texture_offset" getter="get_texture_offset" default="Vector2i(0, 0)">
|
||||
<member name="texture_origin" type="Vector2i" setter="set_texture_origin" getter="get_texture_origin" default="Vector2i(0, 0)">
|
||||
Offsets the position of where the tile is drawn.
|
||||
</member>
|
||||
<member name="transpose" type="bool" setter="set_transpose" getter="get_transpose" default="false">
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@
|
|||
<param index="0" name="map_position" type="Vector2i" />
|
||||
<description>
|
||||
Returns the centered position of a cell in the TileMap's local coordinate space. To convert the returned value into global coordinates, use [method Node2D.to_global]. See also [method local_to_map].
|
||||
[b]Note:[/b] This may not correspond to the visual position of the tile, i.e. it ignores the [member TileData.texture_offset] property of individual tiles.
|
||||
[b]Note:[/b] This may not correspond to the visual position of the tile, i.e. it ignores the [member TileData.texture_origin] property of individual tiles.
|
||||
</description>
|
||||
</method>
|
||||
<method name="move_layer">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue