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.
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.
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 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 }