2d-extras icon indicating copy to clipboard operation
2d-extras copied to clipboard

Grid Information Serialization NullReferenceException

Open BruceZoom opened this issue 1 year ago • 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.

BruceZoom avatar Sep 15 '24 17:09 BruceZoom

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

ChuanXin-Unity avatar Sep 17 '24 01:09 ChuanXin-Unity

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:

  • From your Unity Project, open the Package Manager from the menu item Window/Package Manager
  • In the Package Manager window, click on the + button on the top left corner and select "Install package from git URL"
  • Enter the following URL in the text box: "https://github.com/Unity-Technologies/2d-extras.git#2022.1/giserialize" or "https://github.com/Unity-Technologies/2d-extras.git#package_2022.1" once the fix is confirmed.

ChuanXin-Unity avatar Sep 17 '24 04:09 ChuanXin-Unity

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

BruceZoom avatar Sep 17 '24 17:09 BruceZoom