docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XRInputHapticImpulseProvider.InputSourceMode

    The mode that determines from which input source to get the haptic channels.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public enum XRInputHapticImpulseProvider.InputSourceMode

    Fields

    Name Description
    InputAction

    The output channel or device is identified by an input action defined and serialized with this behavior.

    InputActionReference

    The output channel or device is identified by an input action defined in the project. This is the default mode.

    ObjectReference

    The haptic channels are sourced from an object reference that implements IXRHapticImpulseProvider.

    Unused

    Haptics are explicitly not used. Set to this mode to avoid any performance cost when haptics are not needed.

    See Also
    inputSourceMode
    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)