UMassSpawnerSubsystem

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

MassSpawner

Header

/Engine/Plugins/Runtime/MassGameplay/Source/MassSpawner/Public/MassSpawnerSubsystem.h

Include

#include "MassSpawnerSubsystem.h"

Syntax

UCLASS()
class UMassSpawnerSubsystem : public UWorldSubsystem

Variables

Functions

Name Description

Public function

void

 

DestroyEntities

(
    const FMassEntityTemplateID Templat...,
    TConstArrayView< FMassEntityHandle ...
)

Protected function

void

 

DoSpawning

(
    const FMassEntityTemplate& EntityT...,
    const int32 NumToSpawn,
    FConstStructView SpawnData,
    TSubclassOf< UMassProcessor > Initi...,
    TArray< FMassEntityHandle >& OutEn...
)

Public function Const

const FMassE...

 

GetMassEntityTemplate

(
    FMassEntityTemplateID TemplateID
)

Protected function

UMassProcess...

 

GetSpawnLocationInitializer

(
    TSubclassOf< UMassProcessor > Initi...
)

Public function Const

UMassEntityT...

 

GetTemplateRegistryInstance()

Public function

void

 

RegisterCollection

(
    TArrayView< FInstancedStruct > Coll...
)

Public function

void

 

SpawnEntities

(
    const FMassEntityTemplate& EntityT...,
    const uint32 NumberToSpawn,
    TArray< FMassEntityHandle >& OutEn...
)

Spawns entities of the kind described by the given EntityTemplate.

Public function

void

 

SpawnEntities

(
    FMassEntityTemplateID TemplateID,
    const uint32 NumberToSpawn,
    FConstStructView SpawnData,
    TSubclassOf< UMassProcessor > Initi...,
    TArray< FMassEntityHandle >& OutEn...
)

Public function

void

 

SpawnFromConfig

(
    FStructView Config,
    const int32 NumToSpawn,
    FConstStructView SpawnData,
    TSubclassOf< UMassProcessor > Initi...
)

Overridden from UWorldSubsystem

Name Description

Protected function Virtual

void

 

PostInitialize()

Called once all UWorldSubsystems have been initialized

Overridden from USubsystem

Name Description

Protected function Virtual

void

 

Initialize

(
    FSubsystemCollectionBase& Collecti...
)

Implement this for initialization of instances of the system