Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/FNiagaraWorldManager > API/Plugins/Niagara/FNiagaraWorldManager/ObjectPoolGetOrCreate
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraWorldManager.h |
| Include | #include "NiagaraWorldManager.h" |
| Source | /Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraWorldManager.cpp |
UObject * ObjectPoolGetOrCreate
(
UClass * Class,
bool & bIsExistingObject
)
Remarks
Will create a new object or return one from the pool. Existing objects will not be unregistered / reset / sanitized, they come out exactly as they were put into the pool. You must hold a valid reference to the object or it will be GCed. New objects are outered to the world managers world. EXPERIMENTAL: This API is intended for internal use currently, it is subject to change