UMassRepresentationProcessor::ReleaseAnyActorOrCancelAnySpawning

Release an actor or cancel its spawning (calls ReleaseAnyActorOrCancelAnySpawning) WARNING: This method will destroy the associated actor in any and by the same fact might also move the entity into a new archetype.

Choose your operating system:

Windows

macOS

Linux

References

Module

MassRepresentation

Header

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

Include

#include "MassRepresentationProcessor.h"

Source

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

Syntax

static void ReleaseAnyActorOrCancelAnySpawning
(
    UMassRepresentationSubsystem & RepresentationSubsystem,
    const FMassEntityHandle MassAgent
)

Remarks

Release an actor or cancel its spawning (calls ReleaseAnyActorOrCancelAnySpawning) WARNING: This method will destroy the associated actor in any and by the same fact might also move the entity into a new archetype. So any reference to fragment might become invalid.

Returns

True if actor was release or spawning request was canceled

Parameters

Parameter

Description

RepresentationSubsystem

to use to release any actors or cancel spawning requests

MassAgent

is the handle to the associated mass agent