Skip to content
InvexGames edited this page Dec 23, 2014 · 8 revisions

Description and Uses

The Checkbox is a control that can be toggled to change a variable or call a function. The 'Toggle' (default name) object hosts the uGUI Toggle component and the MaterialUI CheckboxConfig component. The CheckboxConfig component creates an InkblotsControl component at runtime and configures its settings to match that of the CheckboxConfig.

Checkbox Image


Options

Ink Blot Enabled - Does clicking the button create InkBlots?


Auto Ink Blot Size - If enabled, the Ink Blot Size will be set to the width (or height, if that is larger) of the button.


Ink Blot Size - The size of the InkBlots.


Ink Blot Speed - The speed of the InkBlots' animation.


Ink Blot Color - The color of the InkBlots. Note that the alpha level of this color is ingored.


Ink Blot Start Alpha - The alpha level of the InkBlots when first created.


Ink Blot End Alpha - The alpha level of the InkBlot when the initial animation has finished after creation, but before it has been released (on pointer up or exit button).


Animation Duration - The duration of the toggle animation.


Frame Image - The Linked Image of the Frame. This does not usually need to be changed.


Box Image - The Linked Image of the Box. This does not usually need to be changed.


Check Image - The Linked Image of the Check. This does not usually need to be changed.


How-To

Resizing the Checkbox:

If you want to resize the checkbox, simply edit the RectTransform's width and height values of the 'Toggle' (default name) control. You can also use the drag handles in the Scene View. Then, the Checkbox Text font size can be changed separately.

Clone this wiki locally