Mode
: FeedbackMode |
Gets the currently selected feedback handling mode (FeedbackMode.Default, FeedbackMode.Suppress, or FeedbackMode.Override) for this GameObject.
Signature
FeedbackMode Oculus.Interaction.Feedback.FeedbackSettings.Mode |
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 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 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, .
|
_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 |