Search Issue Tracker
By Design
Votes
1
Found in [Package]
1.0.0
Issue ID
1374170
Regression
No
Tiles using Tilemap.BoxFill get resized when running through the first loop of Tiles
How to reproduce:
1. Open the attached "1374170.zip" project
2. Open the "SampleScene" Scene found in the Scenes folder
3. Press the Play button
Expected result: After looping through the colors once the bars stay the same size
Actual result: After looping through the colors once the Tilemap.BoxFill bars change size
Reproducible with: 1.0.0 (2020.3.25f1, 2021.2.7f1, 2022.1.0b2)
Couldn't test with: 2019.4.34f1 (Cannot deprecate 2D Common and 2D Path packages, throws errors)
Notes:
- Only 1.0.0 is available of the 2D Tilemap Editor package
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][Vulkan] Crash on /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+4) when the Vulkan Graphics API is used
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
- An added component is being removed form the prefab when reimporting the prefab
Resolution Note:
Tilemap.ClearAllTiles will change the origin and size of the Tilemap. This will affect Tilemap.BoxFill calls after this as the BoxFill target is now outside of the new origin and size of the Tilemap.
To prevent this, the user can set the original origin and size of the Tilemap after calling Tilemap.ClearAllTiles.