Description
The OnRenderTransparent
property of the SceneCamera
class is an event that is triggered when the camera is rendering the transparent pass. This allows you to hook into the rendering process and execute custom logic during the transparent rendering phase.
Usage
To use the OnRenderTransparent
property, assign a method to it that matches the System.Action
delegate signature. This method will be called whenever the transparent pass is being rendered by the camera.
Example
// Example of using OnRenderTransparent
SceneCamera camera = new SceneCamera();
// Assign a method to the OnRenderTransparent event
camera.OnRenderTransparent = () =>
{
// Custom rendering logic for transparent objects
// This code will be executed during the transparent rendering pass
};