-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
get_tiles_count on Scene Collection returns wrong number #73645
Comments
Seems unimplemented: godot/scene/resources/tile_set.cpp Lines 4731 to 4733 in 9c960a8
I wonder if there is a reason. |
As a workaround I use get_next_scene_tile_id() and subtract 1 from the returned value. But I'd prefere to use the proper method. |
This is the expected behavior. Those function are meant to be used to be able to iterate over all sources tiles and their alternatives. Since tiles scenes are indexed using the Here, it is Edit: as a side note, it would be possible to index scene tiles using the tile ID, but since it is a I guess that needs a better documentation then though. |
Godot version
4.0 RC2
System information
Kubuntu 22.10
Issue description
The method get_tiles_count() does not return the right amount (always 1) of included scenes, when called on a Scene Collection Source.
It works alright when called on an Atlas Source, though.
Steps to reproduce
Minimal reproduction project
get_tiles_count.zip
The text was updated successfully, but these errors were encountered: