UxrHapticClip Constructor

Public constructor.

Namespace: UltimateXR.Haptics
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public UxrHapticClip(
	AudioClip clip = null,
	UxrHapticClipType fallbackClipType = UxrHapticClipType.None,
	UxrHapticMode hapticMode = UxrHapticMode.Mix,
	float clipAmplitude = 1f,
	float fallbackAmplitude = 1f,
	float fallbackDurationSeconds = -1f
)

Parameters

 

clip (Optional)
Type: AudioClip
The audio clip
fallbackClipType (Optional)
Type: UltimateXR.Haptics.UxrHapticClipType
The fallback clip if the primary audio clip is null
hapticMode (Optional)
Type: UltimateXR.Haptics.UxrHapticMode
The haptic mixing mode
clipAmplitude (Optional)
Type: System.Single
The amplitude of the audio clip
fallbackAmplitude (Optional)
Type: System.Single
The amplitude of the fallback clip
fallbackDurationSeconds (Optional)
Type: System.Single
The duration in seconds of the fallback clip (negative = use predefined)

See Also

Reference

UxrHapticClip Class
UltimateXR.Haptics Namespace