.systemhaptic files, which are parsed into HapticsParametricVibration structs for playback via the ParametricHaptics API.
Resources/SystemHapticsPatternClips/ directory, mapping each SystemHapticsPattern enum value to its corresponding vibration data. Patterns are cached for efficient lookup and playback.
SystemHapticsPlayPattern
(
pattern
, controller
)
|
Plays a system haptic pattern from the cached dictionary at the desired playback location.
Signature
static void SystemHapticsPlayPattern(SystemHapticsPattern pattern, Controller controller) Parameters controller: Controller
The target controller to play back the haptic effect on.
Returns void |
| Member | Description |
|---|---|
Success |
Use to indicate a successful action, completion of a task, or "positive" toast (notification).
|
Warning |
Use to indicate a warning or non-critical issue that requires user attention.
|
Error |
Use to indicate a critical error or failure that requires immediate user attention.
|
Hover |
Use when the user hovers over an interactive element or object.
|
Press |
Use when the user presses a button or similar control.
|
Select |
Use to confirm a selection action, such as toggling a switch on or activating a checkbox.
|
Deselect |
Use to confirm a deselection action, such as toggling a switch off or deactivating a checkbox.
|
Grab |
Use when the user grabs or picks up a component or object.
|
Release |
Use when the user releases a previously grabbed component or object.
|