void PreFrame()

book_4_sparkGenerated
code_blocksInput

Description

The PreFrame method is a virtual method of the Editor.NativeRenderingWidget class. It is designed to be called before the rendering frame is processed. This method can be overridden in derived classes to implement custom pre-frame logic specific to the rendering widget.

Usage

To use the PreFrame method, you should create a class that inherits from Editor.NativeRenderingWidget and override the PreFrame method to include any pre-rendering logic you need. This could include setting up rendering parameters, updating scene data, or preparing resources that need to be ready before the frame is rendered.

Example

public class CustomRenderingWidget : Editor.NativeRenderingWidget
{
    public override void PreFrame()
    {
        // Custom pre-frame logic here
        // For example, update scene lighting or prepare shaders
    }
}