Table of Contents

Class ColourPreview

Namespace
PAC.ColourPicker

A class to represent colour previews - the boxes on colour pickers that show what colours you have selected.

public class ColourPreview : MonoBehaviour
Inheritance
ColourPreview

Properties

colour

The colour displayed in the colour preview.

public Color colour { get; }

Property Value

Color

outlineThickness

public float outlineThickness { get; }

Property Value

float

Methods

SetColour(Color)

public void SetColour(Color colour)

Parameters

colour Color

SubscribeToOnDeselect(UnityAction)

Event invoked when colour preview is deselected.

public void SubscribeToOnDeselect(UnityAction call)

Parameters

call UnityAction

SubscribeToOnSelect(UnityAction)

Event invoked when colour preview is selected.

public void SubscribeToOnSelect(UnityAction call)

Parameters

call UnityAction

SubscribeToOnToggle(UnityAction)

Event invoked when colour preview is selected or deselected.

public void SubscribeToOnToggle(UnityAction call)

Parameters

call UnityAction