unreal-gameplay-ability-system

Unreal GAS: Print out the current value of an attribute to UI when it changes

谁说胖子不能爱 提交于 2019-12-02 10:57:39
问题 When the base value of an attribute changes, there is UAttributeSet::PostGameplayEffectExecute() available to access the (new) value and GameplayEffect with its context. I'm using this to print the changed value to UI (this is also done in ActionRPG). Is there something similar available for the current value of an attribute? How to notify UI, when FGameplayAttributeData::CurrentValue is updated? Though UAttributeSet::PreAttributeChange() is called on every value update, it doesn't provide