Description
The RenderOptions
property of the Renderer
class provides access to the rendering options that can be configured for a specific renderer component. This property allows you to customize various advanced rendering settings to control how the renderer behaves and displays objects in the scene.
Usage
To use the RenderOptions
property, you need to have an instance of a class that derives from Renderer
. You can then access and modify the RenderOptions
to adjust rendering settings. This property is part of the advanced rendering group and is editable inline, making it convenient for quick adjustments during development.
Example
// Assuming 'myRenderer' is an instance of a class derived from Renderer
var renderOptions = myRenderer.RenderOptions;
// Example: Modify some render options
renderOptions.EnableShadows = true;
renderOptions.AntiAliasingLevel = 4;
// Apply changes
myRenderer.RenderOptions = renderOptions;