So I’ve been playing around with creating an RPG style game. For my items I have a class called Item with a constructor for different item’s names, stats, descriptions, stuff like that. I was trying to figure out if it was possible to give items in my database scripts through the editor like that. I feel like I’m being vague… So my items pop up in my ItemDatabase gameobject as a dropdown list and I can edit them there, it would make life really easy if I could add scripts to the items just like I can add textures and names. I did some googling but didn’t really know what to search for and ended up with nothing.
Here’s what that database looks like in the editor, but where it says “Game Object” I would instead like to place scripts so that I can access the item’s behaviors and methods through that database, is that possible?