Module |
|
Header |
/Engine/Plugins/Importers/USDImporter/Source/USDClasses/Public/USDAssetCache.h |
Include |
#include "USDAssetCache.h" |
Source |
/Engine/Plugins/Importers/USDImporter/Source/USDClasses/Private/USDAssetCache.cpp |
void MarkAssetsAsStale()
Every time an asset is retrieved/inserted we add it to ActiveAssets. With these functions that container can be reset/returned.
When importing via the USDStageImporter we will move assets from this cache to the content folder. The problem is that some of those assets may not be currently used (e.g. inactive variant, purpose, etc.). The USDStageImporter will then use these functions before/after translating the scene to know which items from the cache that are actually used for the current scene.