Version: 2018.4

パラメーター

channelThe channel to receive the impulse.
amplitudeThe normalized (0.0 to 1.0) amplitude value of the haptic impulse to play on the device.
durationThe duration in seconds that the haptic impulse will play. Only supported on Oculus.

戻り値

bool true if successful; otherwise false.

説明

Sends a haptic impulse to a device.

Sends an impulse (amplitude and frequency) to a device.

Note: Not all devices support all parameters (OpenVR currently only supports amplitude). To determine whether impulse haptics are supported, call the TryGetHapticCapabilities method and inspect the supportsImpulse property.