System.Action OnRenderOpaque { get; set; }

robot_2Generated
code_blocksInput

Description

The OnRenderOpaque property of the SceneCamera class is an event that is triggered when rendering the opaque pass of the scene. This property is marked as obsolete, indicating that it may be removed in future versions and should be avoided in new code.

Usage

To use the OnRenderOpaque property, you can assign a delegate or lambda expression to it that defines the actions to be performed during the opaque rendering pass. However, since this property is obsolete, it is recommended to look for alternative methods or properties for handling rendering tasks.

Example

// Example of assigning a delegate to the OnRenderOpaque property
SceneCamera camera = new SceneCamera();
camera.OnRenderOpaque = () => {
    // Custom rendering logic for the opaque pass
    // Note: This usage is discouraged as the property is obsolete
};