user15199268
user15199268

Reputation:

How can I check if an iOS device has the vibration in Unity?

I've been searching for an answer but I can't find it anywhere.

I was basically looking for a way to detect through code if the iOS device has the vibration hardware or not in Unity Engine. I know that I can check the device type through the DeviceGeneration properties and exclude Tablets or some iPods, but I was looking for a more general and logic way to approach to this problem.

Any clue?

Upvotes: 1

Views: 720

Answers (1)

SeLeCtRa
SeLeCtRa

Reputation: 627

UnityEngine namespace contains SystemInfo.supportsVibration. This property return true, if running device support vibration.

Upvotes: 1

Related Questions