Search Issue Tracker
Fixed
Fixed in 6000.5.0f1, 6000.6.0a7
Fix In Review for 6000.3.19f1
Votes
0
Found in
6000.0.75f1
6000.3.16f1
6000.4.8f1
6000.5.0a9
6000.6.0a5
Issue ID
UUM-142760
Regression
No
InvalidCastException is thrown when hovering over a Tilemap with a saved Random Brush pick containing empty cells
How to reproduce:
- Open the attached “IN-142433“ project
- Open “SampleScene”
- Open Window -> 2D -> Tile Palette
- Enable overlays (Three-dot menu in the Scene view -> Overlays -> Enable Overlays)
- In the Tile Palette window, select "Random Brush"
- In the Random Brush settings, enable Pick Random Tiles
- In the Tile Palette, select several cells from the palette, ensuring that at least one selected cell is empty
- In the Tile Palette Brush Pick overlay (the button with the eyedropper and star icon it the Tile Palette window), save the current brush pick
- Repeat 5-8 steps several times to create multiple saved Tile Palette Brush Picks
- In the Tile Palette Brush Pick overlay, select one of the saved Random Brush Picks
- Move the cursor over the Tilemap in the Scene view without painting
- Observe the Console
Actual result: Console throws “InvalidCastException: Specified cast is not valid” followed by “GUI Error: You are pushing more GUIClips.” than you are popping
Expected result: Hovering over the scene tilemap with a saved Random Brush pick containing empty cells should not produce console errors
Reproducible with: 6000.0.0f1, 6000.0.75f1, 6000.3.16f1, 6000.4.8f1, 6000.5.0b9, 6000.6.0a5
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: The issue only reproduces when the saved Random Brush Tile Palette Brush Pick contains empty cells. The issue does not reproduce when the saved brush pick contains only tile cells.
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
- AdaptiveLOD sample has missing prefabs and throws missing prefab errors when the AdaptiveLOD sample is imported and the AdaptiveLOD scene is opened
- Error "transform.position assign attempt for 'x' is not valid" is logged when Moving Game Object to View while a Scene is multi selected
- [Desktop] Plastic move detection mixes up identical files
- SVG Icon has tessellation issues in "Antialiased Arc Encodings", ok with "Basic Triangulation"
- "You may not pass null objects" and "Maximized serialized file backup not found" errors are thrown when maximizing and minimizing docked Multiplayer Play Mode window after Multiplayer Play Mode package is uninstalled
Resolution Note:
Fixed in 6000.6.0a7
Resolution Note (fix version 6000.6.0a7):
Fixed in 6000.6.0a7
Resolution Note (fix version 6000.5.0f1):
Fixed in 6000.5.0f1
Resolution Note (fix version 6000.3.19f1):
Fixed in 6000.3.19f1