docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HapticImpulseData

    Data needed to describe a haptic impulse.

    Inheritance
    object
    HapticImpulseData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Feedback
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [Serializable]
    public class HapticImpulseData

    Properties

    amplitude

    The desired motor amplitude that should be within a [0-1] range.

    Declaration
    public float amplitude { get; set; }
    Property Value
    Type Description
    float

    duration

    The desired duration of the impulse in seconds.

    Declaration
    public float duration { get; set; }
    Property Value
    Type Description
    float

    frequency

    The desired frequency of the impulse in Hz. The default value of 0 means to use the default frequency of the device. Not all devices or XR Plug-ins support specifying a frequency.

    Declaration
    public float frequency { get; set; }
    Property Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2025 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)