// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using UltimateXR.Core.Components;
using UnityEngine;
namespace UltimateXR.Locomotion
{
///
/// Component that tells an avatar should be re-parented to the GameObject whenever any locomotion takes the avatar to
/// the object or any of its children.
/// If a hierarchy contains more than a single , the closest object or parent
/// upwards will be selected.
/// Some components, such as , have a setting that controls the default behaviour (
/// ). The can in
/// this case be used to override the default behaviour.
///
public class UxrParentAvatarDestination : UxrComponent
{
#region Inspector Properties/Serialized Fields
[SerializeField] private bool _parentAvatar;
#endregion
#region Public Types & Data
///
/// Whether the avatar should be re-parented to the object containing the component whenever a locomotion takes the
/// avatar to the object or any of its children.
///
public bool ParentAvatar
{
get => _parentAvatar;
set => _parentAvatar = value;
}
#endregion
}
}