Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/IPCGBaseSubsystem
Description
Returns the cached value if present, otherwise calls InMakeEntry() to produce one. If the source's task is valid the produced value is stored before returning. If no subsystem is reachable from InSource InMakeEntry() is called and its result returned uncached.
| Name | GetOrCreateExecutionCacheValue |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Subsystems/IPCGBaseSubsystem.h |
| Include Path | #include "Subsystems/IPCGBaseSubsystem.h" |
template<typename T, typename FuncType>
static T::ValueType GetOrCreateExecutionCacheValue
(
const IPCGGraphExecutionSource * InSource,
TPCGPerExecutionCacheId < T > InCacheId,
const FuncType & InMakeEntry,
bool bValidateWritable
)