ProximityLight.Pulse(Single, Single, Single) Method

Definition

Initiates a pulse, if one is not already occurring, which simulates a user touching a surface.

C#
public void Pulse (float pulseDuration = 0.2, float fadeBegin = 0.8, float fadeSpeed = 10);

Parameters

pulseDuration
Single

How long in seconds should the pulse animate over.

fadeBegin
Single

At what point during the pulseDuration should the pulse begin to fade out as a percentage. Range should be [0, 1].

fadeSpeed
Single

The speed to fade in and out.

Applies to

Produit Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0