#include <EditorLayerComponentBus.h>
Inherits AZ::EBusTraits.
|
virtual void | OnNewLayerEntity (const AZ::EntityId &entityId, AZStd::vector< AZ::Component * > &componentsToAdd)=0 |
|
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Multiple |
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::Single |
|
This is a single bus with multiple listeners, for allowing systems to listen when specific layer events occur.
◆ OnNewLayerEntity()
virtual void AzToolsFramework::Layers::EditorLayerCreationNotification::OnNewLayerEntity |
( |
const AZ::EntityId & |
entityId, |
|
|
AZStd::vector< AZ::Component * > & |
componentsToAdd |
|
) |
| |
|
pure virtual |
Called when a new layer is created. Run custom logic you need for new layers on this bus, including adding components to the list of components to add to your layer, if you need custom layer components.
- Parameters
-
entityId | The EntityId of the new layer entity. |
componentsToAdd | An output list of components to add to the entity. Gathered this way to allow all components to be added at once, instead of deactivating and re-activating the layer for each listener on this bus adding components. |
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/ToolsComponents/EditorLayerComponentBus.h