Call this to explicitly release the haptics runtime. This method has the haptics runtime released while ensuring that the garbage collector doesn't kick in., which will also result in any loaded
HapticClipPlayers and
HapticClips being released from memory.
In general, you shouldn't need to explicitly release the haptics runtime as it is intended to run for the duration of your application and gets released via ~Haptics on shutdown. However, if you have a particular reason to release it explicitly, call
Dispose() to do so. If you need to use the haptics runtime again after having released it simply create a new
HapticClipPlayer and a new runtime will be instantiated implicitly. summary>Releases the haptics runtime and its associated resources.