How to make item combination using drag & drop?

Hello,

I made drag & drop option, now I can’t figure out how to make result item from draging one icon to another.

Let’s say I have a blue potion, and i drag it into a red potion. I want to get purple potion icon, and remove those 2 potions. I’m blocked and I really can’t figure out how to make this.

Thanks for any advice

How is the drag and drop option made, for example are you using Raycasts, colliders, etc.? Once I know this, I may be able to help you with the combination.