Class UsesControlHapticsMethods | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class UsesControlHapticsMethods

    Inheritance
    Object
    UsesControlHapticsMethods
    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public static class UsesControlHapticsMethods

    Methods

    Pulse(IUsesControlHaptics, Node, HapticPulse, Single, Single)

    Perform a haptic feedback pulse

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

    The functionality user

    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(IUsesControlHaptics, Node)

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

    Declaration
    public static void StopPulses(this IUsesControlHaptics user, Node node)
    Parameters
    Type Name Description
    IUsesControlHaptics user

    The functionality user

    Node node

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023