Open 3D Engine AzFramework API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#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 &) |
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()
using Camera::CameraNotifications::ConnectionPolicy = CameraNotificationConnectionPolicy<Bus> |
If the camera is active when a handler connects to the bus, then OnCameraAdded() is immediately dispatched.
|
inlinevirtual |
Called whenever the active camera entity changes
cameraId | The id of the newly activated camera |
|
inlinevirtual |
Called whenever a camera entity is added
cameraId | The id of the camera added |
|
inlinevirtual |
Called whenever a camera entity is removed
cameraId | The id of the camera removed |