Navigation
API > API/Plugins > API/Plugins/MassSpawner > API/Plugins/MassSpawner/UMassSpawnerSubsystem
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< FMassEntityManager::FEntityCreationContext > SpawnEntities
(
const FMassEntityTemplate& EntityTemplate, |
Spawns entities of the kind described by the given EntityTemplate. | MassSpawnerSubsystem.h | |
TSharedPtr< FMassEntityManager::FEntityCreationContext > SpawnEntities
(
FMassEntityTemplateID TemplateID, |
MassSpawnerSubsystem.h |
SpawnEntities(const FMassEntityTemplate &, const uint32, TArray< FMassEntityHandle > &)
Description
Spawns entities of the kind described by the given EntityTemplate. The spawned entities are fully initialized meaning the EntityTemplate.InitializationPipeline gets run for all spawned entities.
| Name | SpawnEntities |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassSpawnerSubsystem.h |
| Include Path | #include "MassSpawnerSubsystem.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Private/MassSpawnerSubsystem.cpp |
TSharedPtr < FMassEntityManager::FEntityCreationContext > SpawnEntities
(
const FMassEntityTemplate & EntityTemplate,
const uint32 NumberToSpawn,
TArray < FMassEntityHandle > & OutEntities
)
shared pointer to the entity creation context, that, one released, will cause all the accumulated observers and commands executed
Parameters
| Name | Remarks |
|---|---|
| EntityTemplate | template to use for spawning entities |
| NumberToSpawn | number of entities to spawn |
| OutEntities | where the IDs of created entities get added. Note that the contents of OutEntities get overridden by the function. |
SpawnEntities(FMassEntityTemplateID, const uint32, FConstStructView, TSubclassOf< UMassProcessor >, TArray< FMassEntityHandle > &)
| Name | SpawnEntities |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassSpawnerSubsystem.h |
| Include Path | #include "MassSpawnerSubsystem.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Private/MassSpawnerSubsystem.cpp |
TSharedPtr < FMassEntityManager::FEntityCreationContext > SpawnEntities
(
FMassEntityTemplateID TemplateID,
const uint32 NumberToSpawn,
FConstStructView SpawnData,
TSubclassOf < UMassProcessor > InitializerClass,
TArray < FMassEntityHandle > & OutEntities
)