docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HapticImpulseCommandChannelGroup

    A haptic impulse channel group that uses input system commands to query the haptic capabilities of a device.

    Inheritance
    object
    HapticImpulseCommandChannelGroup
    Implements
    IXRHapticImpulseChannelGroup
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public class HapticImpulseCommandChannelGroup : IXRHapticImpulseChannelGroup

    Properties

    channelCount

    The number of haptic channels on the device.

    Declaration
    public int channelCount { get; }
    Property Value
    Type Description
    int

    Methods

    GetChannel(int)

    Gets the haptic channel on the device by index.

    Declaration
    public IXRHapticImpulseChannel GetChannel(int channel = 0)
    Parameters
    Type Name Description
    int channel

    The haptic channel index.

    Returns
    Type Description
    IXRHapticImpulseChannel

    Returns the haptic channel, or null if the haptic channel does not exist.

    Initialize(InputDevice)

    Initialize the channel group with the given device. Does nothing if already initialized with the same device.

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

    The input device that haptic impulses should be sent to.

    Implements

    IXRHapticImpulseChannelGroup
    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)