🛠️ 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.

Methods

  • OpenPicker() / ClosePicker(): Controls the visibility of the panel.
  • AddCurrentToPalette(): Adds the current colour to the swatch collection and handles saving to PlayerPrefs automatically.
  • CancelSelection(): Reverts the picker to its initial colour and closes the panel.

Haptic Master Switch

To disable vibration globally (e.g., from a settings menu): CanleyColourController.GlobalHapticsEnabled = false;