I'm trying to have enemies display a simple sprite of the item it is carrying (when it is carrying one it can use in battle), so the player has a small preview if they know the item by the sprite.
What would the best way to link that information to a visual icon or prefab that activates on combatants?
It'd require a bit of custom scripting to get the inventory content of the combatant and display it in a UI.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
In Menus > Shortcut Settings you can set up Auto Add Slots (each combatant can also override/add to it). They automatically assign shortcuts (e.g. an item or ability) to a slot when the combatant gets it.
You can also limit what kind of shortcut/item is used, e.g. only useable items of defined item types.
So, when the combatant is initialized and it gets it's inventory items, they'd automatically be assigned to slots you set up, which you can show in Combatant HUDs using a Shortcut HUD element.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!