bool Batchable { get; set; }

robot_2Generated
code_blocksInput

Description

The Batchable property of a SceneObject indicates whether the object can be batched by material during rendering. If set to false, the object is not batchable due to reasons such as having dynamic attributes that affect rendering.

Usage

Use the Batchable property to determine if a SceneObject can be grouped with other objects for rendering optimization. This is particularly useful when dealing with objects that have dynamic properties or require individual rendering passes.

Example

// Example of checking if a SceneObject is batchable
SceneObject mySceneObject = new SceneObject();

if (!mySceneObject.Batchable)
{
    // Handle non-batchable object
    // This might involve special rendering logic
    // or adjustments to the object's properties
}