Unity-Technologies / 2d-extras

Fun 2D Stuff that we'd like to share!
Other
1.54k stars 342 forks source link

Grid Information Serialization NullReferenceException #382

Open BruceZoom opened 2 weeks ago

BruceZoom commented 2 weeks ago

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.

ChuanXin-Unity commented 2 weeks ago

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

ChuanXin-Unity commented 2 weeks ago

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:

BruceZoom commented 2 weeks ago

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