expressobits / inventory-system

Modular inventory system for godot 4 with nodes, compatible with multiplayer, separate logic from the UI, Using items as separate resources.
MIT License
470 stars 31 forks source link

Using InventoryUI to connect to Inventory will report an error #92

Closed zdbq closed 10 months ago

zdbq commented 10 months ago

Hello, after I used Inventory to create the equipment grid, I can add items normally. However, after I use InventoryUI to connect to Inventory, I get an error: Cannot call method 'instantiate' on a null value. I don't know why this is happening. I use godot. The built-in TextureButton can also display Inventory pictures normally. QAQ, I am a newbie. I have been trying for a day and still cannot solve the bug. However, after not using InventoryUI, there are no errors.

scriptsengineer commented 10 months ago

Hello, after I used Inventory to create the equipment grid, I can add items normally. However, after I use InventoryUI to connect to Inventory, I get an error: Cannot call method 'instantiate' on a null value. I don't know why this is happening. I use godot. The built-in TextureButton can also display Inventory pictures normally. QAQ, I am a newbie. I have been trying for a day and still cannot solve the bug. However, after not using InventoryUI, there are no errors.

Fixed? What was the solution?