Navigation
API > API/Plugins > API/Plugins/MassRepresentation > API/Plugins/MassRepresentation/UMassRepresentationActorManageme- > API/Plugins/MassRepresentation/UMassRepresentationActorManageme-/ReleaseAnyActorO-
References
| Module | MassRepresentation |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Public/MassRepresentationActorManagement.h |
| Include | #include "MassRepresentationActorManagement.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassRepresentation/Private/MassRepresentationActorManagement.cpp |
static void ReleaseAnyActorOrCancelAnySpawning
&40;
UMassRepresentationSubsystem & RepresentationSubsystem,
const FMassEntityHandle MassAgent,
FMassActorFragment & ActorInfo,
FMassRepresentationFragment & Representation
&41;
Remarks
Static Release an actor or cancel its spawning 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 if you are not within the pipe execution
Parameters
| Name | Description |
|---|---|
| RepresentationSubsystem | to use to release any actors or cancel spawning requests |
| MassAgent | is the handle to the associated mass agent |
| ActorInfo | is the fragment where we are going to store the actor pointer |
| Representation | fragment containing the current and previous visual state |