How to populate inventory slots with items currently in inventory?

How do I…

Make the code check through the Inventory extension and check which items player owns, to then draw them out in the inventory slot object (change its animation). With the current code, if you pick up the item, it doesn’t add it to the slot on its own. I’m using the Inventory Example on Gdevelop site. But picking up items on that one is made to be on the same scene. My inventory is its own scene.

The current code works, but I do not want to do this for every item in the game. Is there a better way?