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