SliderSounds Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Component that plays sounds to communicate the state of a pinch slider
[UnityEngine.AddComponentMenu("MRTK/UX/Slider Sounds")]
[UnityEngine.RequireComponent(typeof(MixedReality.Toolkit.UX.Slider))]
public class SliderSounds : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("MRTK/UX/Slider Sounds")>]
[<UnityEngine.RequireComponent(typeof(MixedReality.Toolkit.UX.Slider))>]
type SliderSounds = class
inherit MonoBehaviour
Public Class SliderSounds
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourSliderSounds
- Attributes
-
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute
Constructors
| Name | Description |
|---|---|
| SliderSounds() | |
Properties
| Name | Description |
|---|---|
| AlignWithStepSlider |
Whether to line up the 'tick tick' sounds with slider step divisions when those are in use |
| AudioSource |
Gets or sets the AudioSource used to play slider sounds. |
| EndPitch |
The ending pitch for the passNotchSound |
| InteractionEndSound |
Sound to play when interaction with slider ends |
| InteractionStartSound |
Sound to play when interaction with slider starts |
| MinSecondsBetweenTicks |
The min time required to pass before playing the passNotchSound again |
| PassNotchSound |
Sound to play when slider passes a notch |
| PlaySoundsOnlyOnInteract |
Whether sounds play during any changes in value or only during interactions |
| PlayTickSounds |
Whether to play 'tick tick' sounds as the slider passes notches |
| StartPitch |
The starting pitch for the passNotchSound |
| TickEvery |
The interval required for the passNotchSound to play |