Description
The Game
property of the RenderOptions
class is a boolean value that determines whether the regular game rendering layers are enabled. This property is part of the rendering options that can be applied to a scene object to control how it is rendered within the game environment.
Usage
To use the Game
property, you can set it to true
or false
depending on whether you want the regular game rendering layers to be active. This property is typically used in conjunction with other rendering options to customize the rendering behavior of scene objects.
Example
// Example of using the Game property in RenderOptions
RenderOptions renderOptions = new RenderOptions();
// Enable regular game rendering layers
renderOptions.Game = true;
// Apply these render options to a scene object
SceneObject mySceneObject = new SceneObject();
renderOptions.Apply(mySceneObject);