Navigation
API > API/Runtime > API/Runtime/MassEntity
Destroys entities. Uses PushCommand for cross-chunk batching.
Example: // Single entity: Context.Defer().DestroyEntity(EntityHandle); // All entities in chunk: Context.Defer().DestroyEntities(Context.GetEntities());
Breakpoint support: Yes — CheckDestroyEntityBreakpoints called at PushCommand time.
| Name | FMassCommandDestroyEntities |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassCommands.h |
| Include Path | #include "MassCommands.h" |
Syntax
struct FMassCommandDestroyEntities : public FMassBatchedEntityCommand
Inheritance Hierarchy
- FMassBatchedCommand → FMassBatchedEntityCommand → FMassCommandDestroyEntities
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassCommandDestroyEntities() |
MassCommands.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | FMassBatchedEntityCommand | MassCommands.h |
Functions
Public
Protected Virtual
Overridden from FMassBatchedCommand
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Run
(
FMassEntityManager& EntityManager |
MassCommands.h |