Interface IDualShockHaptics | Input System | 1.0.2
docs.unity3d.com
    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.

    In This Article
    • Methods
      • SetLightBarColor(Color)
    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