Hi there,
In order to debug my attribute I added a print in PostGameplayEffectExecute:
void UTDAttributeSet::PostGameplayEffectExecute(const FGameplayEffectModCallbackData& Data)
{
Super::PostGameplayEffectExecute(Data);
if(GEngine)
GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Yellow, FString::Printf(TEXT("%s %f - %f / %f - %f"), *GetOwningActor()->GetName(), GetHealth(), GetMaxHealth(), GetEnergy(), GetMaxEnergy()));
}
While this print show the proper values of the attributes when they are changed, the “ShowDebug” command from the console doesn’t:
Any idea where that comes from?