Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/INiagaraSimCacheCustomStorageInt-
Description
This converts the content of the storage object to a json representation. If another interchange format (e.g. an image format) is better, then the json this method produces should link to the secondary files.
Derived Overrides
| Name | SimCacheToJson |
| Type | function |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraSimCacheCustomStorageInterface.h |
| Include Path | #include "NiagaraSimCacheCustomStorageInterface.h" |
virtual TSharedPtr < FJsonObject > SimCacheToJson
(
const UObject * StorageObject,
int FrameIndex,
TOptional < FString > TargetFolder,
TOptional < FString > FilenamePrefix
) const
a json string representing this data interface object
Parameters
| Name | Remarks |
|---|---|
| TargetFolder | (optional) the folder where to save auxiliary data from this frame. Might not be set if external files are not supported (e.g. when called over network). |
| FilenamePrefix | (optional) unique name for this data interface - can either be used directly as filename or add extensions like .png or even to create a folder and put in multiple files related to this data interface |