📳 Key Public API & Settings
Use these properties and methods in the CanleyHaptics static class to trigger tactile feedback and manage global project settings.
⚙️ Global Toggle
Enabled: The master switch for the engine. Use this to link your game’s “Haptics” setting directly to the native hardware state.
// Example: Global toggle implementation
public void SetHaptics(bool status)
{
CanleyHaptics.Enabled = status;
}🛠 Class Reference
Select the core class below to view its full list of methods, properties, and the style enum:
| Class | Description |
|---|---|
| CanleyHaptics | The global static engine used to trigger tactile feedback and manage engine state. |
🧪 Quick Integration
CanleyHaptics.Trigger(): One-line execution for tactile feedback. This method automatically handles native bridging and Editor simulation.
🌍 Platform Intelligence
To ensure your haptics feel premium regardless of the user’s device, the engine automatically manages three different Android APIs and the iOS Taptic Engine:
CanleyHaptics.Trigger(CanleyHaptics.HapticStyle.MediumBump);