rushassets / ultimate-grid-inventory-demos

Repository containg the Ultimate Grid Inventory demos and their issues
https://www.rushassets.com/products/ultimate-grid-inventory
MIT License
2 stars 0 forks source link

Initializr Inventory not attributing the correct prefabs #28

Open RubensKj opened 1 year ago

RubensKj commented 1 year ago

Describe the bug

When we click the button to Initializr the Inventory. The instantiated prefabs is not set in the InventoryManager, it seems to be outdated...

When we reassigned the prefabs, everything works properly.

Expected behavior

When click the Initializr button, should reassign the prefabs in the InventoryManager and also works properly.

Actual behavior

After clicking the Initializr button, the prefabs seems to not be assigned, or it's a outdated reference. We must to reassign in order things to get working properly, instead we are getting null references...

How to Reproduce?

Steps to reproduce:

  1. Click the Initializr button in the Initializr Inventory Window
  2. Run the game, and open the grids and try to highlight some item.
  3. There will be a NullReference in the console...

Ps: This is because when we initialize the inventory, the prefabs reference seems to be outdated.

Asset version

1.2.0

Additional information

We must to reassign the prefab reference from the scene:

reassigning_the_prefabs
rush-github-bot[bot] commented 1 year ago

/cc @rubenskj (grids,instagram,items,kind-bug,youtube)