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.

Member Functions

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.
Parameters
type
The InteractionType to check for an override.
actions
When this method returns, if an override is found for the specified type , contains the IReadOnlyList<T> of FeedbackActionSOs; otherwise, null.
Returns
if Mode is FeedbackMode.Override and an entry for the specified type with associated actions was found; otherwise, .
Allows runtime configuration of the feedback settings for this GameObject.
Parameters
mode
The FeedbackMode to set.
overrideEntries
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.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon