Description
The Apply
method of the RenderOptions
class is used to apply the current rendering options to a specified SceneObject
. This method modifies the rendering behavior of the SceneObject
based on the properties set in the RenderOptions
instance.
Usage
To use the Apply
method, you need to have an instance of RenderOptions
and a SceneObject
that you want to apply these options to. Call the Apply
method on the RenderOptions
instance, passing the SceneObject
as a parameter.
Example
// Create a new SceneObject
SceneObject mySceneObject = new SceneObject();
// Create a new RenderOptions instance
RenderOptions renderOptions = new RenderOptions();
// Set some rendering options
renderOptions.Game = true;
renderOptions.Overlay = false;
renderOptions.Bloom = true;
renderOptions.AfterUI = false;
// Apply the render options to the SceneObject
renderOptions.Apply(mySceneObject);