Editar

Partilhar via


ProximityLight Class

Definition

Utility component to animate and visualize a light that can be used with the "MixedRealityToolkit/Standard" shader "_ProximityLight" feature.

public ref class ProximityLight : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Core/ProximityLight")]
[UnityEngine.ExecuteInEditMode]
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/rendering/proximity-light")]
public class ProximityLight : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Core/ProximityLight")>]
[<UnityEngine.ExecuteInEditMode>]
[<UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/rendering/proximity-light")>]
type ProximityLight = class
    inherit MonoBehaviour
Public Class ProximityLight
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
ProximityLight
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.ExecuteInEditModeAttribute UnityEngine.HelpURLAttribute

Constructors

ProximityLight()

Properties

Settings

Methods

Pulse(Single, Single, Single)

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

Applies to