Hi, I’m tryingt create system where loot item has material tinted based on rarity (comon, rare, epic…), and i have struct with color for each type.
My Master_Item has variable referencing struct file where i have color for each type (of rarity).
In enums, i can pick variable from dropdown list and go from there. Is there something similar for struct?
How can i setup system where if select one type of rarity, associated color value is selected and applied to something?
I looking for general example how to use struct and access its variables, not specifics on applying materials to objects or anything similar.
I tried to use it in tandem with enum where rarity types are coming from enum file and color values are coming from struct, but i think that is quite stupid way to get it done.
Can someone provide me with guidance?