UAbilityTask_SpawnActor::SpawnActor

Spawn new Actor on the network authority (server)

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/Tasks/AbilityTask_SpawnActor.h

Include

#include "Abilities/Tasks/AbilityTask_SpawnActor.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/Tasks/AbilityTask_SpawnActor.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable,
          Meta=(HidePin="OwningAbility", DefaultToSelf="OwningAbility", BlueprintInternalUseOnly="true"),
          Category="Ability|Tasks")
static UAbilityTask_SpawnActor * SpawnActor
(
    UGameplayAbility * OwningAbility,
    FGameplayAbilityTargetDataHandle TargetData,
    TSubclassOf< AActor > Class
)

Remarks

Spawn new Actor on the network authority (server)

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