-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TileMap.get_used_cells_by_id() should use index instead of id #814
Comments
The YSort renames were tracked in godotengine#16863. This closes godotengine/godot-proposals#814.
Thanks! Can the current 3.2.1 docs be updated for current users? https://docs.godotengine.org/en/stable/classes/class_tilemap.html?highlight=TileMap#class-tilemap-method-get-used-cells-by-id Just a note that |
Added: Note: The tile ``id`` is referred to as the tile ``index`` in other methods. godotengine/godot-proposals#814
@tylerecouture Done in godotengine/godot#38686. |
The YSort renames were tracked in godotengine#16863. This closes godotengine/godot-proposals#814.
I stumbled upon this by searching for the meaning of "index" and "id". Would it make sense to add to the documentation, that "index" is the index defined in the tilemap editor? |
The YSort renames were tracked in godotengine/godot#16863. This closes godotengine/godot-proposals#814.
Describe the project you are working on:
NA
Describe the problem or limitation you are having in your project:
Confusing method in TileMap node
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
The
TileMap
methodget_used_cells_by_id(int id)
is confusing because nowhere is it explained whatid
is. It should probably beget_used_cells_by_index(int index)
to be consistent with the rest of the TileMap node. Docs for this method should clarify that too.For example, the related method
get_used_cells()
DOES refer to index, not id (whatever that is)index is also referred to in the
setcell()
andgetcell()
methods, as opposed to idDescribe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Self explanatory
If this enhancement will not be used often, can it be worked around with a few lines of script?:
Yes, just update docs to explain what id is reffering to
Is there a reason why this should be core and not an add-on in the asset library?:
Already core.
The text was updated successfully, but these errors were encountered: