Click or drag to resize

MeshObjectFadeToTransparency Method

Change the transparency over a given time period. Note that this may have no effect if the visual has a texture in its material.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public void FadeToTransparency(
	double transparency,
	double seconds
)

Parameters

transparency
Type: SystemDouble
Transparency to transition to. A value of 0.0 is fully transparent (see-through), and 1.0 is opaque.
seconds
Type: SystemDouble
How long the transition should take
Examples
C#
[Auto] void OnBlocked(PhotoEye sender, MeshObject load)
{
    load.FadeToTransparency( 0.1, 2 );
}
See Also