VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@42ef3600567b/Runtime/Inputs/Haptics/IXRHapticImpulseChannelGroup.cs
2025-07-29 13:45:50 +03:00

24 lines
810 B
C#

using System;
namespace UnityEngine.XR.Interaction.Toolkit.Inputs.Haptics
{
/// <summary>
/// An interface that allows for getting the haptic impulse channel(s) on a device.
/// </summary>
/// <seealso cref="IXRHapticImpulseChannel"/>
public interface IXRHapticImpulseChannelGroup
{
/// <summary>
/// The number of haptic channels on the device.
/// </summary>
int channelCount { get; }
/// <summary>
/// Gets the haptic channel on the device by index.
/// </summary>
/// <param name="channel">The haptic channel index.</param>
/// <returns>Returns the haptic channel, or <see langword="null"/> if the haptic channel does not exist.</returns>
IXRHapticImpulseChannel GetChannel(int channel = 0);
}
}