Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2019.3.0f6
2020.1.0a17
Issue ID
1215834
Regression
No
[2D][Tilemap] A null reference exception while accessing Tilemap.SyncTile[] causes unexpected behaviour in editor
[2D][Tilemap] A null reference exception while accessing Tilemap.SyncTile[] causes unexpected behaviour in editor
While erasing a tile in a tilemap, got a null reference exception while accessing Tilemap.SyncTile[] from my tilemapTileChanged callback
After that some unexpected behaviour in the editor:
- Clicks in the editor would not register
- Scene camera would randomly zoom in or out while clicking in the tile palette window
- Null reference exceptions would still trigger when not erasing sprites
- Tiles would be placed in the scene while clicking within tile palette window
- Box fill tool shows preview but does not create tiles on mouse click
- Sometimes right-click inputs register when left-clicking on console buttons
Repo steps:
1. Open attached project's sample scene
2. Ensure Grid game object in scene has "APIScripts" script
3. Enter playmode
4. Select erase tool in tile palette window and erase a tile, then observe null reference exception in console
5. Observe unexpected behaviour when using the editor
Expected result: Unexpected behaviour does not occur after null reference exception
Actual result: Unexpected behaviour occurs after null reference exception
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on block_locate_free when rendering a specific scene
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
Add comment