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: 19.00.00
Syntax
C#
public void FadeToTransparency(
	double transparency,
	double seconds
)

Parameters

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