 |
ModelUtilsSetMaterialOpacity Method |
Goes through all models in the models hierarchy that start with the specified sceneNode and sets the Opacity Materials and BackMaterials to the specified opacity value.
Materials need to be defined as StandardMaterial objects.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntaxpublic static void SetMaterialOpacity(
SceneNode? sceneNode,
float newOpacityValue
)
Parameters
- sceneNode SceneNode
- ModelNode or GroupNode
- newOpacityValue Single
- new opacity value that is set to materials (1 means fully opaque - no transparency; 0 means fully transparent)
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.ModelUtils.SetMaterialOpacity(Ab4d.SharpEngine.SceneNodes.SceneNode,System.Single)"]
See Also