docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HapticImpulseSingleChannelGroup

    Haptic impulse channel group that wraps a single channel instance. This class provides a convenient way to create a channel group with a single channel known at time of construction.

    Inheritance
    object
    HapticImpulseSingleChannelGroup
    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 HapticImpulseSingleChannelGroup : IXRHapticImpulseChannelGroup

    Constructors

    HapticImpulseSingleChannelGroup(IXRHapticImpulseChannel)

    Initializes and returns an instance of HapticImpulseSingleChannelGroup.

    Declaration
    public HapticImpulseSingleChannelGroup(IXRHapticImpulseChannel channel)
    Parameters
    Type Name Description
    IXRHapticImpulseChannel channel

    The single haptic impulse channel the group contains.

    Properties

    channelCount

    The number of haptic channels on the device.

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

    impulseChannel

    The single haptic impulse channel the group contains.

    Declaration
    public IXRHapticImpulseChannel impulseChannel { get; }
    Property Value
    Type Description
    IXRHapticImpulseChannel

    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.

    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)