Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Retrieve ItemDefinition from InterfaceComponent?

Joined
Jul 3, 2016
Messages
7
I was wondering if there's a way to get the item definition of the item being portrayed by the texture in an InterfaceComponent?

For example, when you search for an item in the G.E., the item you select is displayed in a small box in the offer interface. I want to get the item that is being shown there. I can't just use the name because some names refer to multiple items (think "Boots").

I thought maybe it would be getContainedItem(), but that does not work for this instance.


====Solution====

I was using it incorrectly. It does not retrieve the item based on its Texture ID. I had the wrong component selected, thus why it was returning null. There is another component overlaid (or underneath) that contains the actual "ContainedItem".
 
Last edited:
Top