Bernkastel
Member
In the tutorial: Customizing UI: Item Views & Attribute Views we set the Rarity attribute as an enum. I am now trying to grab the value of that enum using trygetattributevalue, which I've been using for every other value so far, but when used in an if statement declaration it returns false. When looking at the valuetocoloritemview class, the enum is grabbed using TryGetAttribute instead of TryGetAttributeValue.
Can you explain the difference between when you should use GetValueAsObject from an attribute vs TryGetAttributeValue from an iteminfo?
Can you explain the difference between when you should use GetValueAsObject from an attribute vs TryGetAttributeValue from an iteminfo?