Bearbeiten

Freigeben über


PulseShaderHandMeshHandler Class

Definition

Script for triggering the pulse shader effect on HoloLens 2 hand mesh.

public ref class PulseShaderHandMeshHandler : Microsoft::MixedReality::Toolkit::UI::PulseShader::PulseShaderHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, UnityEngine::EventSystems::IEventSystemHandler
public class PulseShaderHandMeshHandler : Microsoft.MixedReality.Toolkit.UI.PulseShader.PulseShaderHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, UnityEngine.EventSystems.IEventSystemHandler
type PulseShaderHandMeshHandler = class
    inherit PulseShaderHandler
    interface IMixedRealityPointerHandler
    interface IEventSystemHandler
Public Class PulseShaderHandMeshHandler
Inherits PulseShaderHandler
Implements IEventSystemHandler, IMixedRealityPointerHandler
Inheritance
UnityEngine.MonoBehaviour
PulseShaderHandMeshHandler
Implements
IMixedRealityPointerHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

PulseShaderHandMeshHandler()

Properties

AutoStart

Automatically begin repeated pulsing.

(Inherited from PulseShaderHandler)
OriginParamName

Shader parameter name to set the pulse origin, in local space.

(Inherited from PulseShaderHandler)
PalmFacingTime

The length of time required for the palm to face the camera before the pulse shader visual is triggered.

ParamName

Shader parameter name to drive the pulse radius.

(Inherited from PulseShaderHandler)
PulseAnimationDuration

How long in seconds the pulse should animate.

(Inherited from PulseShaderHandler)
PulseFingerTipsOnPinch

Trigger the pulse shader visual if the hand is in the pinch/select gesture.

PulseOnHandDetected

Trigger the pulse shader visual once if the left or right hand enters the frame and is tracked.

PulseOnLookAtPalms

Trigger the pulse shader visual if the palm of the left or right hand is facing the camera.

PulseOriginFingertips

The local origin of the pulse shader visual for the finger tips.

PulseOriginPalms

The local origin of the palms.

PulseRepeatMinDelay

Minimum time to wait between each pulse.

(Inherited from PulseShaderHandler)
SurfaceMat

The material to animate.

(Inherited from PulseShaderHandler)

Methods

ApplyPulseRadiusToMaterial(Single) (Inherited from PulseShaderHandler)
OnDestroy()
OnPointerClicked(MixedRealityPointerEventData)
OnPointerDown(MixedRealityPointerEventData)
OnPointerDragged(MixedRealityPointerEventData)
OnPointerUp(MixedRealityPointerEventData)
PulseFingerTips()

Set the local origin of the pulse shader visual to the finger tips and trigger the animation.

PulseOnce(Boolean) (Inherited from PulseShaderHandler)
PulsePalms()

Set the local origin of the pulse shader visual to the palms and trigger the animation.

ResetPulseMaterial() (Inherited from PulseShaderHandler)
SetLocalOrigin(Vector3) (Inherited from PulseShaderHandler)
Start()
StartPulsing() (Inherited from PulseShaderHandler)
StopPulsing(Boolean) (Inherited from PulseShaderHandler)
Update()

Applies to