🛠️ Key Public API & Events
Use these methods and events in the CanleyColourController class to keep your project logic clean.
📡 Events
OnLiveUpdate: The most important hook. Subscribe to this to update game objects in real-time as sliders move.
// Example usage in your script
void Start() {
pickerController.OnLiveUpdate += MyUpdateMethod;
}
void MyUpdateMethod(Color newCol) {
targetMaterial.color = newCol;
}🔧 Detailed Method Reference
Select a class below to view its full list of methods, parameters, and code examples:
| Class | Description |
|---|---|
| CanleyColourController | The main controller for opening, closing, and syncing picker data. |
| CanleyColourPickerTheme | The global style engine for customizing fonts, colors, and UI scaling. |
| CanleyMiniSwatch | Logic for individual saved palette colors and deletion workflows. |
🎨 Theme & UI
ApplyTheme(): Manually trigger a refresh of fonts and colors if changed at runtime.
📱 Haptic Master Switch
To disable vibration globally (e.g., from a settings menu):
CanleyColourController.GlobalHapticsEnabled = false;