Menu
Lumberyard
Developer Guide (Version 1.11)

Registering Your Component

You register a component during application startup. You implement the registration in the AZ::Module class of the module in which the component is written.

The following example module creates descriptors for the components that are declared within the module.

Copy
//MyModule.cpp MyModule::MyModule() { // Create descriptors for components declared within this module. m_descriptors.insert(m_descriptors.end(), { MyComponent::CreateDescriptor(), }); }

For more information, see the Module Class section of the AZ Modules documentation.