Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/UNiagaraSimCache
Description
Reads Niagara Position attributes by name from the cache frame and appends them into the OutValues array. Local space emitters provide data at local locations unless bLocalSpaceToWorld is true. EmitterName - If left blank will return the system simulation attributes. LocalSpaceToWorld - Caches are always stored in the emitters space, i.e. local or world space. You can set this to false if you want the local position rather than the world position.
| Name | ReadPositionAttribute |
| Type | function |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraSimCache.h |
| Include Path | #include "NiagaraSimCache.h" |
| Source | /Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraSimCache.cpp |
UFUNCTION (BlueprintCallable, Category=NiagaraSimCache,
Meta=(AdvancedDisplay="bLocalSpaceToWorld"))
void ReadPositionAttribute
(
TArray < FVector > & OutValues,
FName AttributeName,
FName EmitterName,
bool bLocalSpaceToWorld,
int FrameIndex
) const