using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace UnityEngine.XR.ARFoundation
{
///
/// Slider used for debug options in .
///
[HelpURL(typeof(ARDebugMenu))]
public class DebugSlider: Slider
{
///
/// Use this callback to detect pointer down events.
///
/// The pointer down event data.
public override void OnPointerDown(PointerEventData eventData)
{
base.OnPointerDown(eventData);
if(interactable)
{
value = (value == 1) ? 0 : 1;
}
}
}
}