Navigation
API > API/Plugins > API/Plugins/MetasoundEngine > API/Plugins/MetasoundEngine/FMetaSoundRandomizerTemplate
Description
Helper function to remove sounds that cannot be referenced by randomizer (i.e. if the sounds are not exactly of type USoundWave or, optionally, if the underlying pointer is null). Returns true if sounds were removed, false if not.
| Name | RemoveInvalidSounds |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/DocumentTemplates/MetasoundRandomizerTemplate.h |
| Include Path | #include "DocumentTemplates/MetasoundRandomizerTemplate.h" |
| Source | /Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Private/DocumentTemplates/MetasoundRandomizerTemplate.cpp |
static bool RemoveInvalidSounds
(
const FMetaSoundFrontendDocumentBuilder & ParentBuilder,
bool bRemoveNullEntries,
TArray < TObjectPtr < USoundWave > > & OutSounds
)