Open 3D Engine AtomLyIntegration Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::Render::MeshComponentNotifications Class Referenceabstract

#include <MeshComponentBus.h>

Inherits AZ::ComponentBus.

Classes

struct  ConnectionPolicy
 

Public Types

using MutexType = AZStd::recursive_mutex
 

Public Member Functions

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)
 

Detailed Description

MeshComponent can send out notifications on the MeshComponentNotificationBus

Member Function Documentation

◆ 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: