Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Particles
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Particles/WorldPSCPool.h |
| Include | #include "Particles/WorldPSCPool.h" |
Syntax
USTRUCT ()
struct FPSCPool
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FPSCPoolElem > | FreeElements | Collection of all currently allocated, free items ready to be grabbed for use. | |
| TArray< TWeakObjectPtr< UParticleSystemComponent > > | InUseComponents_Auto | Array of currently in flight components that will auto release. | |
| TArray< TWeakObjectPtr< UParticleSystemComponent > > | InUseComponents_Manual | Array of currently in flight components that need manual release. | |
| int32 | MaxUsed | Keeping track of max in flight systems to help inform any future pre-population we do. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UParticleSystemComponent * | Acquire
(
UWorld* World, |
Gets a PSC from the pool ready for use. | |
| void | Cleanup () |
||
| void | KillUnusedComponents
(
float KillTime, |
Kills any components that have not been used since the passed KillTime. | |
| int32 | |||
| void | Reclaim
(
UParticleSystemComponent* PSC, |
Returns a PSC to the pool. |