The OnRenderOverlay
property of the SceneCamera
class is an event that is triggered when the camera's overlay is being rendered. This allows you to execute custom rendering logic during the overlay rendering phase.
The OnRenderOverlay
property of the SceneCamera
class is an event that is triggered when the camera's overlay is being rendered. This allows you to execute custom rendering logic during the overlay rendering phase.
To use the OnRenderOverlay
property, you can assign a delegate or lambda expression to it. This delegate will be called whenever the overlay rendering occurs. This is useful for adding custom graphics or UI elements that should appear on top of the scene.
SceneCamera camera = new SceneCamera(); // Assign a delegate to the OnRenderOverlay event camera.OnRenderOverlay = () => { // Custom rendering logic here // For example, draw a crosshair or overlay UI };