void ClearMaterialOverride()

book_4_sparkGenerated
code_blocksInput

Description

The ClearMaterialOverride method is used to remove all material overrides that have been applied to a SceneObject. This will reset the object's materials to their default state, as defined by the object's model.

Usage

Call this method on a SceneObject instance when you want to revert any material changes and return to the original materials specified by the model.

Example

// Assuming 'sceneObject' is an instance of SceneObject
sceneObject.ClearMaterialOverride();

// After calling this method, the sceneObject will use its default materials.