Add ultimate xr

This commit is contained in:
2024-08-06 21:58:35 +02:00
parent 864033bf10
commit 7165bacd9d
3952 changed files with 2162037 additions and 35 deletions

View File

@@ -0,0 +1,30 @@
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="BatteryAnchor.cs" company="VRMADA">
// Copyright (c) VRMADA, All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.Core.Components;
using UltimateXR.Manipulation;
using UnityEngine;
namespace UltimateXR.Examples.FullScene.Lab
{
/// <summary>
/// Component that helps enumerate the potential battery anchors in a scene using LabBatteryAnchor.EnabledComponents.
/// Battery placing has some additional special mechanics for the sliding-in/sliding-out behavior. This component
/// helps identifying where those places are.
/// </summary>
public class BatteryAnchor : UxrComponent<BatteryAnchor>
{
#region Inspector Properties/Serialized Fields
[SerializeField] private UxrGrabbableObjectAnchor _batteryAnchor;
/// <summary>
/// Actual anchor component where a battery can be placed.
/// </summary>
public UxrGrabbableObjectAnchor Anchor => _batteryAnchor;
#endregion
}
}