FDerivedDataCacheInterface::GetSynchronous

Synchronously checks the cache and if the item is present, it returns the cached results, otherwise tells the deriver to build the data and then updates the cache

Unreal Engine C++ API Reference > Developer > DerivedDataCache > FDerivedDataCacheInterface > GetSynchronous

References

   
Module DerivedDataCache
Header /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataCacheInterface.h
Include #include "DerivedDataCacheInterface.h"
bool GetSynchronous
(
    class [FDerivedDataPluginInterface](API\Developer\DerivedDataCache\FDerivedDataPluginInterface) * DataDeriver,
    [TArray](API\Runtime\Core\Containers\TArray)< uint8 > & OutData,
    bool * bDataWasBuilt
)

Remarks

Synchronously checks the cache and if the item is present, it returns the cached results, otherwise tells the deriver to build the data and then updates the cache true if the data was retrieved from the cache or the deriver built the data sucessfully. false can only occur if the plugin returns false.

Parameters

Name Description
DataDeriver plugin to produce cache key and in the event of a miss, return the data.
bDataWasBuilt if non-null, set to true if the data returned had to be built instead of retrieved from the DDC. Used for stat tracking.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library