UMassRepresentationSubsystem::CancelSpawning

Cancel spawning request that is matching the TemplateActorIndex

Choose your operating system:

Windows

macOS

Linux

References

Module

MassRepresentation

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationSubsystem.h

Include

#include "MassRepresentationSubsystem.h"

Source

/Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationSubsystem.cpp

Syntax

bool CancelSpawning
(
    const FMassEntityHandle MassAgent,
    const int16 TemplateActorIndex,
    FMassActorSpawnRequestHandle & SpawnRequestHandle
)

Remarks

Cancel spawning request that is matching the TemplateActorIndex

Returns

True if spawning request was canceled

Parameters

Parameter

Description

MassAgent

is the handle to the associated mass agent

TemplateActorIndex

is the template type of the actor to release in case it was successfully spawned

SpawnRequestHandle

[IN/OUT] previously requested spawn, gets invalidated as a result of this call.