UAbilitySystemGlobals::GetAbilitySystemComponentFromActor

Searches the passed in actor for an ability system component, will use the AbilitySystemInterface

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemGlobals.h

Include

#include "AbilitySystemGlobals.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemGlobals.cpp

Syntax

static UAbilitySystemComponent * GetAbilitySystemComponentFromActor
(
    const AActor * Actor,
    bool LookForComponent
)

Remarks

Searches the passed in actor for an ability system component, will use the AbilitySystemInterface

Helping function to avoid having to manually cast

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss