Detailed Configuration
Static Property: GlobalHapticsEnabled
Instance Property: _enableHaptics
Overview
The Canley Colour Picker features a dual-layer haptic system designed to provide “premium” tactile feedback on mobile devices (iOS/Android) via a dedicated Haptic Bridge.
The Two-Layer System
1. The Global Master Switch (Static)
This is a project-wide setting. If this is set to false, no picker in your entire game will vibrate, regardless of its individual settings. This is intended for use in your game’s main “Options” or “Settings” menu.
Example:
CanleyColourController.GlobalHapticsEnabled = false;2. Per-Instance Toggle
Each picker has an Enable Haptics checkbox in the Inspector. This allows you to have tactile feedback on a “Character Creator” but keep a “Simple UI Tint” picker silent.
Haptic Styles Triggered
- Selection: A light “tick” when tapping swatches or starting a drag.
- Confirmation: A distinct “Success” vibration when the ‘Select’ button is pressed.
- Navigation: Subtle feedback as sliders are moved.
NOTE
Haptics require a supported mobile device. On Desktop/Editor, these calls are safely ignored and will not cause errors.