UxrControlFeedback Class
Defines sound and haptic feedback for pressing events. Each UxrControlInput, for instance, has a UxrControlFeedback for each of its click/down/up events.
Inheritance Hierarchy
System.Object
UltimateXR.UI.UxrControlFeedback
Namespace: UltimateXR.UI
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class UxrControlFeedback
The UxrControlFeedback type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrControlFeedback() | Default constructor. | |
UxrControlFeedback(UxrHapticClip) | Constructor allowing to define the haptic clip. |
Properties
Name | Description | |
---|---|---|
AudioClip | Gets or sets the audio clip. | |
AudioVolume | Gets or sets the audio volume. | |
HapticClip | Gets or sets the haptic clip. | |
UseAudio3D | Gets or sets whether to use 3D audio. |
Fields
Name | Description | |
---|---|---|
FeedbackClick | Regular click | |
FeedbackDown | Subtle click | |
FeedbackUp | No feedback |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |