Navigation
API > API/Plugins > API/Plugins/MetasoundFrontend > API/Plugins/MetasoundFrontend/FGlobalRegistrationList
Description
If you've hit this deprecation warning it is because you are using a backwards compatible MetaSound node registration code path for your module. In order to better support loading and unloading of MetaSound, perform the following updates. This will remove this deprecation warning.
- Add private definitions to the module's Build.cs file for METASOUND_PLUGIN and METASOUND_MODULE PrivateDefinitions.Add("METASOUND_PLUGIN=MyPlugin") PrivateDefinitions.Add("METASOUND_MODULE=MyModule") These definitions must be private to the module.
- Implement a module registration group using the provided macros. In MyModule.cpp METASOUND_IMPLEMENT_MODULE_REGISTRATION_LIST
- Trigger registration in your module's StartupModule and ShutdownModule calls void FMyModule::StartupModule() { METASOUND_REGISTER_ITEMS_IN_MODULE } void FMyModule::ShutdownModule() { METASOUND_UNREGISTER_ITEMS_IN_MODULE }
| Name | GetHeadAction |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Public/MetasoundFrontendModuleRegistrationMacros.h |
| Include Path | #include "MetasoundFrontendModuleRegistrationMacros.h" |
| Source | /Engine/Plugins/Runtime/Metasound/Source/MetasoundFrontend/Private/MetasoundFrontendModuleRegistrationMacros.cpp |
static FRegistrationAction *& GetHeadAction()