Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/UNiagaraSimCache
Description
Reads Niagara attributes by name from the cache frame and appends them into the relevant arrays. When reading using this method the attributes for a FVector would come out as AoS rather than SoA so each component is wrote one by one EmitterName - If left blank will return the system simulation attributes.
| Name | ReadAttribute |
| 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 |
void ReadAttribute
(
TArray < float > & OutFloats,
TArray < FFloat16 > & OutHalfs,
TArray < int32 > & OutInts,
FName AttributeName,
FName EmitterName,
int FrameIndex
) const