VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@42ef3600567b/Runtime/Locomotion/Climbing/ClimbSettings.cs
2025-07-29 13:45:50 +03:00

54 lines
1.9 KiB
C#

using System;
using UnityEngine.Scripting.APIUpdating;
namespace UnityEngine.XR.Interaction.Toolkit.Locomotion.Climbing
{
/// <summary>
/// Settings for climb locomotion. These settings can be used globally as part of the <see cref="ClimbProvider"/>
/// or as overrides per-instance of <see cref="ClimbInteractable"/>.
/// </summary>
[Serializable]
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public class ClimbSettings
{
[SerializeField]
[Tooltip("Controls whether to allow unconstrained movement along the climb interactable's x-axis.")]
bool m_AllowFreeXMovement = true;
/// <summary>
/// Controls whether to allow unconstrained movement along the <see cref="ClimbInteractable"/>'s x-axis.
/// </summary>
public bool allowFreeXMovement
{
get => m_AllowFreeXMovement;
set => m_AllowFreeXMovement = value;
}
[SerializeField]
[Tooltip("Controls whether to allow unconstrained movement along the climb interactable's y-axis.")]
bool m_AllowFreeYMovement = true;
/// <summary>
/// Controls whether to allow unconstrained movement along the <see cref="ClimbInteractable"/>'s y-axis.
/// </summary>
public bool allowFreeYMovement
{
get => m_AllowFreeYMovement;
set => m_AllowFreeYMovement = value;
}
[SerializeField]
[Tooltip("Controls whether to allow unconstrained movement along the climb interactable's z-axis.")]
bool m_AllowFreeZMovement = true;
/// <summary>
/// Controls whether to allow unconstrained movement along the <see cref="ClimbInteractable"/>'s z-axis.
/// </summary>
public bool allowFreeZMovement
{
get => m_AllowFreeZMovement;
set => m_AllowFreeZMovement = value;
}
}
}