void SetMaterialOverride( Material material )
void SetMaterialOverride( Material material, string attributeName, int attributeValue )

book_4_sparkGenerated
code_blocksInput

Description

The SetMaterialOverride method allows you to override the material of a SceneObject with a specified Material. This can be useful for dynamically changing the appearance of objects in a scene without altering the original material settings.

Usage

To use the SetMaterialOverride method, you need to have an instance of a SceneObject and a Material that you want to apply as an override. Call the method on the SceneObject instance, passing the Material as a parameter.

Example

// Assuming 'sceneObject' is an instance of SceneObject
// and 'newMaterial' is an instance of Material

sceneObject.SetMaterialOverride(newMaterial);