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.
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.
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.
// Assuming 'sceneObject' is an instance of SceneObject // and 'newMaterial' is an instance of Material sceneObject.SetMaterialOverride(newMaterial);