Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
Lofelt.NiceVibrations.HapticClip Class Reference

Represents an imported haptic clip asset. More...

Inheritance diagram for Lofelt.NiceVibrations.HapticClip:

Public Attributes

byte[] json
 The JSON representation of the haptic clip, stored as a byte array encoded in UTF-8, without a null terminator.
GamepadRumble gamepadRumble
 The haptic clip represented as a GamepadRumble struct.

Detailed Description

Represents an imported haptic clip asset.

HapticClip contains the data of a haptic clip asset imported from a .haptic file, in a format suitable for playing it back at runtime. A HapticClip is created by HapticImporter when importing a haptic clip asset in the Unity editor, and can be played back at runtime with e.g. HapticSource or HapticController.Play().

It contains two representations:

  • JSON, used for playback on iOS and Android
  • GamepadRumble, used for playback on gamepads with the GamepadRumbler class

Member Data Documentation

◆ gamepadRumble

GamepadRumble Lofelt.NiceVibrations.HapticClip.gamepadRumble

The haptic clip represented as a GamepadRumble struct.

◆ json

byte [] Lofelt.NiceVibrations.HapticClip.json

The JSON representation of the haptic clip, stored as a byte array encoded in UTF-8, without a null terminator.


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/NiceVibrations/Scripts/Components/HapticClip.cs