// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.Avatar;
using UltimateXR.Core;
using UltimateXR.Core.Components;
using UltimateXR.Extensions.Unity;
using UnityEngine;
using UnityEngine.UI;
namespace UltimateXR.UI.UnityInputModule
{
///
/// Component that, added to a with a component, enables interaction
/// using components or components.
///
public class UxrCanvas : UxrComponent
{
#region Inspector Properties/Serialized Fields
[SerializeField] protected UxrInteractionType _interactionType;
[SerializeField] protected float _fingerTipMinHoverDistance = UxrFingerTipRaycaster.FingerTipMinHoverDistanceDefault;
[SerializeField] protected bool _autoEnableLaserPointer;
[SerializeField] protected float _autoEnableDistance = 5.0f;
[SerializeField] protected bool _allowLeftHand = true;
[SerializeField] protected bool _allowRightHand = true;
#endregion
#region Public Types & Data
///
/// Gets the Unity component.
///
public Canvas UnityCanvas => GetCachedComponent