docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDualShockHaptics

    Extended haptics interface for DualShock controllers.

    Inherited Members
    IDualMotorRumble.SetMotorSpeeds(float, float)
    IHaptics.PauseHaptics()
    IHaptics.ResumeHaptics()
    IHaptics.ResetHaptics()
    Namespace: UnityEngine.InputSystem.DualShock
    Assembly: Unity.InputSystem.dll
    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
    Back to top
    Copyright © 2024 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)