void PreFrame()

book_4_sparkGenerated
code_blocksInput

Description

The PreFrame method is a virtual method in the Editor.SceneRenderingWidget class. It is designed to be called before the frame rendering process begins. This method can be overridden in derived classes to perform any necessary operations or setup before the scene is rendered.

Usage

To use the PreFrame method, you can override it in a subclass of Editor.SceneRenderingWidget. This allows you to insert custom logic that should be executed before each frame is rendered. This can be useful for tasks such as updating scene data, preparing rendering resources, or adjusting camera settings.

Example

public class CustomSceneRenderingWidget : Editor.SceneRenderingWidget
{
    public override void PreFrame()
    {
        // Custom logic before rendering the frame
        // For example, update scene objects or adjust camera settings
    }
}