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 original 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 original state, as defined by the object's model.
Call this method on a SceneObject
instance when you want to revert any material changes that have been applied using SetMaterialOverride
. This is useful when you need to reset the appearance of the object to its default state.
// Example of using ClearMaterialOverride // Assume 'sceneObject' is an instance of SceneObject sceneObject.ClearMaterialOverride(); // After calling this method, any material overrides on 'sceneObject' will be cleared.