using System; using UnityEngine.XR.Interaction.Toolkit.Interactables; namespace UnityEngine.XR.Interaction.Toolkit { /// /// Add this attribute to an XR Interaction component to control whether to allow or disallow multiple selection mode. /// /// [AttributeUsage(AttributeTargets.Class)] public sealed class CanSelectMultipleAttribute : Attribute { /// /// Whether to allow multiple selection mode. The default value is to allow. /// public bool allowMultiple { get; } /// /// Initializes the attribute specifying whether to allow or disallow multiple selection mode. /// /// Specifies whether to allow the mode to enable multiple objects to be selected. public CanSelectMultipleAttribute(bool allowMultiple = true) { this.allowMultiple = allowMultiple; } } }