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