Navigation
API > API/Runtime > API/Runtime/MassEntity
Atomically swaps one tag for another on entities. Removes TOld and adds TNew in a single composition change. Uses PushCommand for cross-chunk batching.
Example: // All entities in chunk: Context.Defer().SwapTags
Supported types: FMassTag subtypes only (compile-time static_assert). Breakpoint support: No. Entity moves: 1 move (both tag changes applied together).
| Name | FMassCommandSwapTagsInternal |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassCommands.h |
| Include Path | #include "MassCommands.h" |
Syntax
template<EMassCommandCheckTime CheckTime, typename TOld, typename TNew>
struct FMassCommandSwapTagsInternal : public FMassCommandChangeTags
Inheritance Hierarchy
- FMassBatchedCommand → FMassBatchedEntityCommand → FMassCommandChangeTags → FMassCommandSwapTagsInternal
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassCommandSwapTagsInternal() |
MassCommands.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Super | FMassCommandChangeTags | MassCommands.h |