Class CanSelectMultipleAttribute
Add this attribute to an XR Interaction component to control whether to allow or disallow multiple selection mode.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class CanSelectMultipleAttribute : Attribute, _Attribute
Constructors
CanSelectMultipleAttribute(Boolean)
Initializes the attribute specifying whether to allow or disallow multiple selection mode.
Declaration
public CanSelectMultipleAttribute(bool allowMultiple = true)
Parameters
Type | Name | Description |
---|---|---|
Boolean | allowMultiple |
Properties
allowMultiple
Whether to allow multiple selection mode. The default value is true to allow.
Declaration
public bool allowMultiple { get; }
Property Value
Type | Description |
---|---|
Boolean |