docs.unity.cn
    Show / Hide Table of Contents

    Interface IDualShockHaptics

    Extended haptics interface for DualShock controllers.

    Inherited Members
    IDualMotorRumble.SetMotorSpeeds(Single, Single)
    IHaptics.PauseHaptics()
    IHaptics.ResumeHaptics()
    IHaptics.ResetHaptics()
    Namespace: UnityEngine.InputSystem.DualShock
    Syntax
    public interface IDualShockHaptics : IDualMotorRumble, IHaptics

    Methods

    SetLightBarColor(Color)

    Set the color of the light bar on the back of the controller.

    Declaration
    void SetLightBarColor(Color color)
    Parameters
    Type Name Description
    Color color

    Color to use for the light bar. Alpha component is ignored. Also, RBG values are clamped into [0..1] range.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Thursday, September 9, 2021