#No Attribute in "showdebug AbilitySystem"
1 messages · Page 1 of 1 (latest)
Can you check that you have everything here ?
Also, compare with Narxim's / Tranek's
No Attribute in "showdebug AbilitySystem"
I just figured it out, tranek's documentation is out of date. There is 2 ways to fix it:
UAttributeSet* AS = NewObject<UAttributeSet>(this);
AbilitySystemComponent->AddSpawnedAttribute(AS); --> this is needed to fix the issue
or
const UAttributeSet* AS = AbilitySystemComponent->AddSet<UAttributeSet>();
The key is u need to add the AttributeSet to the AbilitySystemComponent
I wouldn't do the first way. NewObject can be dangerous
Second is alright
We have an attribute initializer structure you can grab if you want it from Narxim's
You can specificy which attr set, GE, GA and attribute values you want for your character.
@viscid egret
furthermore, if your attribute set is declared as a class variable, like the ASC, and in the same class, it will be registered automatically
well, it was in the past
Yeah, currently this is not the way anymore.
const UAttributeSet* AS = AbilitySystemComponent->AddSet<UAttributeSet>();