「TapticEngine」アセットはiOS 端末でバイブレーションなどを実現する TapticEngine のAPIを呼び出せるネイティブ拡張アセットです。
アセットページ

TapticEngine
Native extension for the iOS Taptic Engine.
ライブラリのURL
https://github.com/MaratGilyazov/def_taptic_engine/archive/master.zip
サンプルコード
if (taptic_engine and taptic_engine.isSupported()) then
taptic_engine.impact(taptic_engine.IMPACT_LIGHT)
taptic_engine.impact(taptic_engine.IMPACT_MEDIUM)
taptic_engine.impact(taptic_engine.IMPACT_HEAVY)
taptic_engine.notification(taptic_engine.NOTIFICATION_SUCCESS)
taptic_engine.notification(taptic_engine.NOTIFICATION_WARNING)
taptic_engine.notification(taptic_engine.NOTIFICATION_ERROR)
taptic_engine.selection()
else
--do something else
end