Move third party assets to ThirdParty folder

This commit is contained in:
2024-08-08 11:26:28 +02:00
parent 386f303057
commit bd91af6f98
10340 changed files with 100 additions and 175 deletions

View File

@@ -0,0 +1,47 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="UxrCameraPointer.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.Devices;
using UltimateXR.Extensions.System.Collections;
using UnityEngine;
namespace UltimateXR.UI
{
/// <summary>
/// Gaze pointer that can be added to a camera to enable gaze interaction with user interfaces.
/// </summary>
public class UxrCameraPointer : UxrLaserPointer
{
#region Inspector Properties/Serialized Fields
[SerializeField] private GameObject _crosshair;
#endregion
#region Unity
/// <summary>
/// Initializes the component.
/// </summary>
protected override void Awake()
{
if (_crosshair != null)
{
// Disable crosshair colliders to avoid ray-casting
_crosshair.GetComponentsInChildren<Collider>().ForEach(c => c.enabled = false);
}
ClickInput = UxrInputButtons.Everything;
ShowLaserInput = UxrInputButtons.None;
IsInvisible = true;
// At the end so that the overriden parameters initialize the UxrLaserPointer component correctly.
base.Awake();
}
#endregion
}
}