Navigation
API > API/Plugins > API/Plugins/InstancedActors
Inheritance Hierarchy
- UWorldSubsystem
- UMassSubsystemBase
- UMassActorSpawnerSubsystem
- UServerInstancedActorsSpawnerSubsystem
References
| Module | InstancedActors |
| Header | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Public/ServerInstancedActorsSpawnerSubsystem.h |
| Include | #include "ServerInstancedActorsSpawnerSubsystem.h" |
Syntax
UCLASS ()
class UServerInstancedActorsSpawnerSubsystem : public UMassActorSpawnerSubsystem
Remarks
Dedicated UMassActorSpawnerSubsystem subclass handling server-side Actor spawning for InstancedActor. The main responsibility is InstancedActors-specific setup of newly spawned actors, including configuring UInstancedActorsComponent instanced a newly spawned actor hosts.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FMassEntityManager > | EntityManager | ||
| TObjectPtr< AActor > | TransientActorBeingSpawned | Set during SpawnActor and cleared once complete, to 'catch' UInstancedActorComponents initializing during the actor spawn, matching their Owner to TransientActorBeingSpawned in OnInstancedActorComponentInitialize, to test if the component was 'spawned by Instanced Actors'. | |
| FInstancedActorsInstanceHandle | TransientActorSpawningInstance |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | OnInstancedActorComponentInitialize
(
UInstancedActorsComponent& InstancedActorComponent |
Called by UInstancedActorsComponent::InitializeComponent to provide an opportunity, before BeginPlay, to catch Instanced Actors we're spawning, to set their FMassEntityHandle association. |
Overridden from UMassActorSpawnerSubsystem
| Type | Name | Description | |
|---|---|---|---|
| bool | ReleaseActorToPool
(
AActor* Actor |
Try releasing this actor to pool if possible | |
| ESpawnRequestStatus | SpawnActor
(
FConstStructView SpawnRequestView, |
Actual code that will spawn the actor, overridable by subclass if need to be. |
Overridden from UMassSubsystemBase
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
||
| void | Initialize
(
FSubsystemCollectionBase& Collection |
USubsystem BEGIN. | |
| bool | ShouldCreateSubsystem
(
UObject* Outer |