Interface IProvidesControlHaptics | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Interface IProvidesControlHaptics

    Provides the ability to control haptic feedback

    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public interface IProvidesControlHaptics : IFunctionalityProvider

    Methods

    Pulse(Node, HapticPulse, Single, Single)

    Perform a haptic feedback pulse

    Declaration
    void Pulse(Node node, HapticPulse hapticPulse, float durationMultiplier = 1F, float intensityMultiplier = 1F)
    Parameters
    Type Name Description
    Node node

    Node on which to control the pulse

    HapticPulse hapticPulse

    Haptic pulse to perform

    Single durationMultiplier

    (Optional) Multiplier value applied to the hapticPulse duration

    Single intensityMultiplier

    (Optional) Multiplier value applied to the hapticPulse intensity

    StopPulses(Node)

    Stop all haptic feedback on a specific device, or all devices

    Declaration
    void StopPulses(Node node)
    Parameters
    Type Name Description
    Node node

    Device RayOrigin/Transform on which to stop all pulses. A NULL value will stop pulses on all devices

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX