#No Attribute in "showdebug AbilitySystem"

1 messages · Page 1 of 1 (latest)

gentle moon
#

Can you check that you have everything here ?

#

Also, compare with Narxim's / Tranek's

#

No Attribute in "showdebug AbilitySystem"

viscid egret
#

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

gentle moon
#

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

viscid egret
gentle moon
#

const UAttributeSet* AS = AbilitySystemComponent->AddSet<UAttributeSet>();