Description
The Enabled
property of the CommandList
class in the Sandbox.Rendering
namespace is a boolean property that indicates whether the command list is currently enabled or not. When set to true
, the command list is active and can be used to issue rendering commands. If set to false
, the command list is disabled and will not process any rendering commands.
Usage
To use the Enabled
property, simply access it through an instance of the CommandList
class. You can check its value to determine if the command list is active, or set it to enable or disable the command list as needed.
Example
// Example of using the Enabled property
// Create a new CommandList instance
CommandList commandList = new CommandList();
// Check if the command list is enabled
if (commandList.Enabled)
{
// Perform rendering operations
}
// Disable the command list
commandList.Enabled = false;
// Enable the command list
commandList.Enabled = true;