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 focus mode. /// /// [AttributeUsage(AttributeTargets.Class)] public sealed class CanFocusMultipleAttribute : Attribute { /// /// Whether to allow multiple focus mode. The default value is to allow. /// public bool allowMultiple { get; } /// /// Initializes the attribute specifying whether to allow or disallow multiple focus mode. /// /// Specifies whether to allow multiple focusable objects. public CanFocusMultipleAttribute(bool allowMultiple = true) { this.allowMultiple = allowMultiple; } } }