-
Running the
TileSetgeneration code creates aTileSetresource and I am able to also assign Tiles from to aTileMapLayerin code (not doing this in the GUI yet) -
When I open the generated
TileMapLayerScene in the GUI theTileSettile that I assigned to theTileMapLayercoords are corrupt (missing?) -
In the GUI, when I open the
TileSetcorresponding to theTileMapLayer, the tiles are all **greyed out **(image shared) -
Only when I click on the individual tile in the atlas/texture window does it THEN get recognized in the
TileMapLayer
What is happening here? I have a feeling it is maybe related to the errors I also have posted. But it's concerning that the errors don't prevent the TileSet from being created in the first place.
https://docs.godotengine.org/ja/4.x/classes/class_tilesetatlassource.html#class-tilesetatlassource-property-texture-region-size
^^if the units of a texture_region_size are in pixels (incorrect assumption?), then why would a texture_region_size have to differ from the TileSet's tile_size?
Updating the atlas_source.set_texture_region_size(Vector2i(16, 16)) to an 18x18 texture_region_size, also causes more issues, like the tiles no longer being selectable/un-greyed-out (in the GUI).
With no CLEAR explanation as to why this relationship between TileSetAtlasSource.texture_region_size and TileSet.tile_size exists, i feel like the documentation needs to be improved to articulate this better somehow, and perhaps provide code examples as well