Description
The PreFrame
method is a virtual method of the Editor.SceneRenderingWidget
class. It is intended 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 the rendering of each frame. This could include tasks such as updating scene data, preparing resources, or setting up rendering parameters.
Example
public class CustomSceneRenderingWidget : Editor.SceneRenderingWidget
{
public override void PreFrame()
{
// Custom logic before rendering the frame
// For example, update scene lighting or prepare custom shaders
}
}