Feel  5.1
The best way to improve your game's feel and make it extra juicy
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 More...
 
GamepadRumble gamepadRumble
 The haptic clip represented as a GamepadRumble struct More...
 

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: