Description
The SceneRenderLayer.Default
field is a member of the SceneRenderLayer
enumeration in the Sandbox namespace. It represents the default rendering layer for scene objects, where objects are drawn based on the default behavior and flags set within the rendering system. This layer is typically used for standard rendering operations where no special layering is required.
Usage
Use SceneRenderLayer.Default
when you want to render objects in the default layer, which follows the standard rendering pipeline and respects the default rendering flags. This is suitable for most objects that do not require special rendering considerations, such as overlays or view models.
Example
// Example of using SceneRenderLayer.Default
public class MyGameComponent : Component
{
public override void Render()
{
// Render this component using the default scene render layer
RenderContext.SetRenderLayer(SceneRenderLayer.Default);
// Add rendering logic here
}
}