Search Issue Tracker
By Design
Votes
0
Found in
2021.3.44f1
2022.3.48f1
6000.0.21f1
Issue ID
UUM-82682
Regression
No
Tilemap Collider 2D does not detect collisions when the Tile textures alpha value is below a certain amount
How to reproduce:
1. Open the “Tilemap_low_alpha_breaks_collider“ project
2. Open the “SampleScene“
3. Enter the Play Mode
4. Observe the Game view
Expected result: The “this_falls_through_44_but_not_244“ GameObject does not fall through the “Tex_alpha 44“ tiles
Actual result: The “this_falls_through_44_but_not_244“ GameObject falls through the “Tex_alpha 44“ tiles
Reproducible with: 2021.3.44f1, 2022.3.48f1, 6000.0.21f1
Reproducible on: macOS 14.6.1 (Intel), Windows 11 (Reporters)
Not reproducible on: No other environments tested
Notes:
- Does not reproduce when the texture is not a part of a tilemap (to see that move the “this_falls_through_44_but_not_244“ GameObject with WASD to collide with “normal_game_object”/”normal_game_object2”)
- According to the reporter the alpha value threshold for the collision not to be detected anymore is inconsistent
- Reproducible in the Player
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Unity has an alpha threshold for detecting a physics shape for a Sprite is at 200/255. This value was set and maintained through Unity versions to ensure consistency for projects across the Unity versions.
If you would like to have a specific physics shape, you could follow the steps in our manual page at https://docs.unity3d.com/Manual/CustomPhysicsShape.html to change them to ones that are suitable for you.