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.
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.
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.
// Assuming 'sceneObject' is an instance of SceneObject sceneObject.ClearMaterialOverride(); // After calling this method, the sceneObject will use its default materials.