Unity-Technologies/2d-extras

Grid Information Serialization NullReferenceException

Opened this issue · 3 comments

I attached a GridInformation component to the tilemap and made the tilemap into a prefab.
But the following error message pops up whenever I modify the prefab and Unity tries to serialize it.
image
The line below is the code causing the problem.
image
Not sure how to fix it nor whether it will cause some problems.

I am using Unity 2022.3.20f1 and 2D Tilemap Extras 3.1.2.

Sorry about this issue! We will take a look at this!

I have added a fix for this issue for review in the next version of the package.

In the meantime, you can get the fix by doing the following:

Thank you for fixing it! It stops throwing error messages.