Struct DualMotorRumble | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct DualMotorRumble

    Common implementation of dual motor rumbling.

    Namespace: UnityEngine.InputSystem.Haptics
    Syntax
    public struct DualMotorRumble

    Properties

    highFrequencyMotorSpeed

    Declaration
    public float highFrequencyMotorSpeed { get; }
    Property Value
    Type Description
    System.Single

    isRumbling

    Declaration
    public bool isRumbling { get; }
    Property Value
    Type Description
    System.Boolean

    lowFrequencyMotorSpeed

    Declaration
    public float lowFrequencyMotorSpeed { get; }
    Property Value
    Type Description
    System.Single

    Methods

    PauseHaptics(InputDevice)

    Declaration
    public void PauseHaptics(InputDevice device)
    Parameters
    Type Name Description
    InputDevice device

    ResetHaptics(InputDevice)

    Declaration
    public void ResetHaptics(InputDevice device)
    Parameters
    Type Name Description
    InputDevice device

    ResumeHaptics(InputDevice)

    Declaration
    public void ResumeHaptics(InputDevice device)
    Parameters
    Type Name Description
    InputDevice device

    SetMotorSpeeds(InputDevice, Single, Single)

    Declaration
    public void SetMotorSpeeds(InputDevice device, float lowFrequency, float highFrequency)
    Parameters
    Type Name Description
    InputDevice device
    System.Single lowFrequency
    System.Single highFrequency
    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