I’ve a problem with the GAS System.
I’ve added a variable to it and set it to be instanced only once per actor.
I set the variable in the ability, I check it right after and it is set sucessfully.
But when I want to read it in the magnitude calculation, its empty.
I’ve checked whether it is instanced multiple times, but it is only instanced once.
Its empty anyway.
const UTestAbility* ContextAbility = Cast<UTestAbility>(Spec.GetEffectContext().GetAbility()); ContextAbility->Target;
Why is that the case?
Also, can I access the target direcly from the FGameplayEffectSpec? If so where is it stored?
Thanks for your answer.