Showing item image from ItemManager item blueprintSolved

Is there anyway to show the item image/sprite/png using cui from something in the ItemManager? Basically a way to render the items sprite from its item id.

For example is there a way to show the blueprint ingredient sprite with the following?

ItemManager.FindItemDefinition(item.id).Blueprint.ingredients[0].itemDef.iconSprite​


sinec the new CuiRawImageComponent takes a string for url/png/sprite, not sure how i would get the location of the corosponding sprite, or if there is a way to render the sprite directly from the sprite reference above.

That's client side. Just to create a CuiImageComponent and specify itemid. Kits has an example.

Worked perfect thank you!

Locked automatically