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

FeedbackSettings Class

Extends MonoBehaviour
Attach this component to an Interactable GameObject to customize its interaction feedback behavior.
It allows overriding or suppressing the default feedback defined by the global FeedbackManager and FeedbackConfig.

Fields

Gets the currently selected feedback handling mode (FeedbackMode.Default, FeedbackMode.Suppress, or FeedbackMode.Override) for this GameObject.
Signature
FeedbackMode Oculus.Interaction.Feedback.FeedbackSettings.Mode

Methods

InjectSettings ( mode , overrideEntries )
Allows runtime configuration of the feedback settings for this GameObject.
Signature
void Oculus.Interaction.Feedback.FeedbackSettings.InjectSettings(FeedbackMode mode, List< OverrideEntry > overrideEntries=null)
Parameters
mode: FeedbackMode  The FeedbackMode to set.
overrideEntries: List< OverrideEntry >  A list of OverrideEntrys to use if mode is FeedbackMode.Override. This list will be copied. If null is provided while mode is FeedbackMode.Override, the existing overrides will be cleared.
Returns
void
TryGetOverrideActions ( type , actions )
Attempts to retrieve a read-only list of custom FeedbackActionSOs defined for a specific InteractionType.
This is only relevant if Mode is set to FeedbackMode.Override.
Signature
bool Oculus.Interaction.Feedback.FeedbackSettings.TryGetOverrideActions(InteractionType type, out IReadOnlyList< FeedbackActionSO > actions)
Parameters
type: InteractionType  The InteractionType to check for an override.
actions: out IReadOnlyList< FeedbackActionSO >  When this method returns, if an override is found for the specified type , contains the IReadOnlyList<T> of FeedbackActionSOs; otherwise, null.
Returns
bool  if Mode is FeedbackMode.Override and an entry for the specified type with associated actions was found; otherwise, .

Inner Struct

OverrideEntry Struct

Defines a specific set of feedback actions to be executed for a particular InteractionType when FeedbackSettings.Mode is set to FeedbackMode.Override.

Fields

_actions : List< FeedbackActionSO >
A list of FeedbackActionSO assets that will be executed when an interaction of the specified _interaction type occurs and FeedbackSettings.Mode is FeedbackMode.Override.
Signature
List<FeedbackActionSO> Oculus.Interaction.Feedback.FeedbackSettings.OverrideEntry._actions
_interaction : InteractionType
The type of interaction (e.g., HoverStart, SelectEnd) for which this override applies.
Signature
InteractionType Oculus.Interaction.Feedback.FeedbackSettings.OverrideEntry._interaction