EGameplayAbilityInstancingPolicy::Type

How the ability is instanced when executed.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbilityTypes.h

Include

#include "Abilities/GameplayAbilityTypes.h"

Syntax

namespace EGameplayAbilityInstancingPolicy
{
    enum Type
    {
        NonInstanced,
        InstancedPerActor,
        InstancedPerExecution,
    }
}

Values

Name

Description

NonInstanced

This ability is never instanced. Anything that executes the ability is operating on the CDO.

InstancedPerActor

Each actor gets their own instance of this ability. State can be saved, replication is possible.

InstancedPerExecution

We instance this ability each time it is executed. Replication possible but not recommended.

Remarks

How the ability is instanced when executed. This limits what an ability can do in its implementation. For example, a NonInstanced Ability cannot have state. It is probably unsafe for an InstancedPerActor ability to have latent actions, etc.

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