docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SendHapticImpulse

    SendHapticImpulse(float, float)

    Play a haptic impulse on the controller if one is available.

    Declaration
    public bool SendHapticImpulse(float amplitude, float duration)
    Parameters
    Type Name Description
    float amplitude

    Amplitude (from 0.0 to 1.0) to play impulse at.

    float duration

    Duration (in seconds) to play haptic impulse.

    Returns
    Type Description
    bool

    Returns true if successful. Otherwise, returns false.

    See Also
    SendHapticImpulse(float, float)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)