Enum SectorInteraction.SweepBehavior
Sets which strategy to use when sweeping the stick around the cardinal directions without returning to center for whether the action should perform or cancel.
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Interactions
Syntax
public enum SweepBehavior : int
Fields
Name | Description | Value |
---|---|---|
Locked | Perform if initially actuated in a configured valid direction, and will remain so (i.e. even if no longer actuating in a valid direction) until returning to center, at which point it will cancel. |
0 |
AllowReentry | Perform if initially actuated in a configured valid direction, and will cancel when no longer actuating in a valid direction, and will perform again when re-entering a valid sector even when not returning to center. |
1 |
DisallowReentry | Perform if initially actuated in a configured valid direction, and will cancel when no longer actuating in a valid direction, and will remain so when re-entering a valid sector without returning to center. |
2 |
HistoryIndependent | Perform if actuated in a configured valid direction, no matter the initial actuation direction. Will cancel when not actuated in a valid direction. |
3 |