Navigation
API > API/Plugins > API/Plugins/MassRepresentation > API/Plugins/MassRepresentation/UMassRepresentationSubsystem
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 |
bool ReleaseTemplateActorOrCancelSpawning
&40;
const FMassEntityHandle MassAgent,
const int16 TemplateActorIndex,
AActor &42; ActorToRelease,
FMassActorSpawnRequestHandle & SpawnRequestHandle
&41;
Remarks
Release an actor or cancel its spawning if it is matching the TemplateActorIndex True if actor was released or spawning request was canceled
Parameters
| Name | 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 |
| ActorToRelease | is the actual actor to release if any |
| SpawnRequestHandle | [IN/OUT] previously requested spawn, gets invalidated as a result of this call. |