Open 3D Engine AzFramework 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.
Camera::CameraNotifications Class Reference

#include <CameraBus.h>

Inherits AZ::EBusTraits.

Classes

struct  CameraNotificationConnectionPolicy
 

Public Types

template<class Bus >
using ConnectionPolicy = CameraNotificationConnectionPolicy< Bus >
 

Public Member Functions

virtual void OnCameraAdded (const AZ::EntityId &)
 
virtual void OnCameraRemoved (const AZ::EntityId &)
 
virtual void OnActiveViewChanged (const AZ::EntityId &)
 

Detailed Description

Handle this bus if you want to know when cameras are added or removed during edit or run time You will get an OnCameraAdded event for each camera that is already active If you create your own camera you should call this bus on activation/deactivation Connect to the bus like this Camera::CameraNotificationBus::Handler::Connect()

Member Typedef Documentation

◆ ConnectionPolicy

If the camera is active when a handler connects to the bus, then OnCameraAdded() is immediately dispatched.

Member Function Documentation

◆ OnActiveViewChanged()

virtual void Camera::CameraNotifications::OnActiveViewChanged ( const AZ::EntityId &  )
inlinevirtual

Called whenever the active camera entity changes

Parameters
cameraIdThe id of the newly activated camera

◆ OnCameraAdded()

virtual void Camera::CameraNotifications::OnCameraAdded ( const AZ::EntityId &  )
inlinevirtual

Called whenever a camera entity is added

Parameters
cameraIdThe id of the camera added

◆ OnCameraRemoved()

virtual void Camera::CameraNotifications::OnCameraRemoved ( const AZ::EntityId &  )
inlinevirtual

Called whenever a camera entity is removed

Parameters
cameraIdThe id of the camera removed

The documentation for this class was generated from the following file: