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
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class CanSelectMultipleAttribute : Attribute
Constructors
CanSelectMultipleAttribute(bool)
Initializes the attribute specifying whether to allow or disallow multiple selection mode.
Declaration
public CanSelectMultipleAttribute(bool allowMultiple = true)
Parameters
Type | Name | Description |
---|---|---|
bool | allowMultiple |
See Also
Properties
allowMultiple
Whether to allow multiple selection mode. The default value is true to allow.
Declaration
public bool allowMultiple { get; }
Property Value
Type | Description |
---|---|
bool |