[BUG] Crash when changing column size of Grid

Sangemdoko

Moderator
Staff member
[Reported by Randomize in discord]
Assigning a grid content to a grid slot in the Grid Size & Layout group and increasing Columns causes abnormal loading and Unity is forced to terminate.
Also, in the project where the problem occurred, if I assigned a grid content to the Crafting menu or to a grid slot in the Grid Size & Layout group and increased the Columns value, and by chance the abnormal loading did not occur, I could not open the project again if I saved it as it was.

I will look into this asap. If you have any other information about this issue in the meantime please let me know
 
From Discord:

I was able to have a look at your crash log. Something is not right.
There is an infinite loop but it is caused by Unity code. For some reason it's as if you are pressing the button in the editor infinitely


Also, I see in your crash log that the prefab to spawn is null.
Make sure to specify a prefab in the GridEventSystem "button" field. These are ItemViewSlot for ItemGrids. For Recipes these are ButtonViewSlots
After setting the button field, with a prefab the infinite loop stopped occuring
 
Top