Skip to guide
Rainbow Lab/Documentation

Shape Foundry

Included controls

The library includes button looks, panels, shape fills, progress bars, rings, single-line and multiline inputs, dropdowns, standard checkboxes, slide toggles, an empty scroll view and a populated scroll-view example. Setup > Restore Control Templates recreates missing control prefabs without replacing existing ones.

Controls use Unity UI's normal event and navigation APIs, with TMP labels, input fields and dropdowns. For a password field, change an input's Content Type to Password.

The standard checkbox is a native Unity Toggle with a procedural checkmark. The slide toggle extends Unity Toggle: click it, navigate with the keyboard or drag its thumb. Track and thumb colours are editable; its transition uses unscaled time. Vertical drags inside a parent ScrollRect pass through to scrolling.

Buttons support hover and press feedback, including centred scale changes. Optional shared feedback assets keep colours and motion consistent between buttons.

Control states

Use Add hover, pressed & disabled appearances on a button's Inspector, or add Control States from the component menu. Choose Hover, Pressed, Selected or Disabled and enable the appearance sections that should change. Normal stays on Shape Image. State appearances change immediately; button scale and native colour transitions remain separate.

For a control whose Shape Image is a child, assign that graphic to Control States. Saving the control retains its state appearances. Restyling from a template with states transfers the appearances while keeping the destination's graphic references.