API reference
API reference
Select your platform
No SDKs available
No versions available

Rule Class

Defines a single rule for triggering feedback.
A rule matches if its Type, Tag (if specified), and Interactors criteria are met by an InteractionEvent.

Fields

The specific InteractionType this rule applies to (e.g., HoverStart, SelectEnd).
Optional Unity Tag constraint.
If not empty, the source GameObject of the interaction must have this tag for the rule to match. Leave blank to match any tag.
Specifies the kind(s) of interactor this rule applies to.
Use InteractorKind.Any to match all interactor types.
A list of FeedbackActionSO assets to execute when this rule matches.
These actions define the actual feedback (haptic, audio, visual, etc.).
If true, a default haptic pattern defined by DefaultHaptics will also be played when this rule matches, in addition to any Actions.
The default haptic pattern to play if UseDefaultHaptics is true.
Did you find this page helpful?