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

FeedbackConfig Class

Extends ScriptableObject
A ScriptableObject that defines a prioritized list of rules for triggering feedback based on interaction events.
The first rule in the list that matches an incoming InteractionEvent (considering its InteractionType, the source GameObject's Unity Tag, and the InteractorKind) will be applied.

Inner Class

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

Actions : List< FeedbackActionSO >
A list of FeedbackActionSO assets to execute when this rule matches.
These actions define the actual feedback (haptic, audio, visual, etc.).
Signature
List<FeedbackActionSO> Oculus.Interaction.Feedback.FeedbackConfig.Rule.Actions
DefaultHaptics : HapticPattern
The default haptic pattern to play if UseDefaultHaptics is true.
Signature
HapticPattern Oculus.Interaction.Feedback.FeedbackConfig.Rule.DefaultHaptics
Interactors : InteractorKind
Specifies the kind(s) of interactor this rule applies to.
Use InteractorKind.Any to match all interactor types.
Signature
InteractorKind Oculus.Interaction.Feedback.FeedbackConfig.Rule.Interactors
Tag : string
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.
Signature
string Oculus.Interaction.Feedback.FeedbackConfig.Rule.Tag
The specific InteractionType this rule applies to (e.g., HoverStart, SelectEnd).
Signature
InteractionType Oculus.Interaction.Feedback.FeedbackConfig.Rule.Type
UseDefaultHaptics : bool
If true, a default haptic pattern defined by DefaultHaptics will also be played when this rule matches, in addition to any Actions.
Signature
bool Oculus.Interaction.Feedback.FeedbackConfig.Rule.UseDefaultHaptics

Inner Enum

InteractorKind Enum

Flags enum representing different kinds of interactors.
Used by FeedbackConfig.Rule to filter based on the type of interactor that initiated an interaction.

Enumeration Constants

MemberValueDescription
Any
0
Matches any interactor type.
Poke
1 << 0
Represents a PokeInteractor.
Ray
1 << 1
Represents a RayInteractor or a UI pointer event.
Grab
1 << 2
Represents a GrabInteractor.
HandGrab
1 << 3
Represents a HandGrabInteractor.
HandGrabUse
1 << 4
Represents a HandGrabUseInteractor.
TouchHandGrab
1 << 5
Represents a TouchHandGrabInteractor.
DistanceGrab
1 << 6
Represents a DistanceGrabInteractor.
DistanceHandGrab
1 << 7
Represents a DistanceHandGrabInteractor.