#include <MeshComponentBus.h>
Inherits AZ::ComponentBus.
|
using | MutexType = AZStd::recursive_mutex |
|
|
virtual void | OnModelReady (const Data::Asset< RPI::ModelAsset > &modelAsset, const Data::Instance< RPI::Model > &model)=0 |
|
virtual void | OnModelPreDestroy () |
| Notifies listeners when the instance of the model for this component is about to be released.
|
|
virtual void | OnObjectSrgCreated (const Data::Instance< RPI::ShaderResourceGroup > &) |
| Notifies listeners when a new ObjectSrg was created (this is where you'd like to update your custom ObjectSrg)
|
|
MeshComponent can send out notifications on the MeshComponentNotificationBus
◆ OnModelReady()
virtual void AZ::Render::MeshComponentNotifications::OnModelReady |
( |
const Data::Asset< RPI::ModelAsset > & |
modelAsset, |
|
|
const Data::Instance< RPI::Model > & |
model |
|
) |
| |
|
pure virtual |
Notifies listeners when a model has been loaded. If the model is already loaded when first connecting to the MeshComponentNotificationBus, the OnModelReady event will occur when connecting.
The documentation for this class was generated from the following file:
- Gems/AtomLyIntegration/CommonFeatures/Code/Include/AtomLyIntegration/CommonFeatures/Mesh/MeshComponentBus.h