Navigation
API > API/Plugins > API/Plugins/MetasoundEngine > API/Plugins/MetasoundEngine/UMetaSoundCacheSubsystem
Description
Same as PrecacheMetaSound except cached operator that already exists in the cache will be moved to the top instead of building, any operators that we couldn't move to the top, will be built. (i.e. if 2 operators are already cached and Num Instances is 4, it will construct 2 and move the existing 2 to the top of the cache)
| Name | TouchOrPrecacheMetaSound |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundOperatorCacheSubsystem.h |
| Include Path | #include "MetasoundOperatorCacheSubsystem.h" |
| Source | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Private/MetasoundOperatorCacheSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="MetaSound",
Meta=(DisplayName="Touch or Precache MetaSound"))
void TouchOrPrecacheMetaSound
(
UMetaSoundSource * InMetaSound,
int32 InNumInstances
)