UGTK cat mascotUGTKengine within an engine Request access

UGTK / Toolkit / Ui Module / Toggle Extension Completed

Ui Module — UGTK

Toggle Extension

Summary

Extends Unity's UI Toggle. Mn_UGTKToggle is a Toggle subclass that adds separate OnValueBecameTrue / OnValueBecameFalse events (with auto-binding of Background/Checkmark graphics), while Mn_MultiToggle aggregates several toggles as one controller, firing "all on" / "all off" and per-toggle edge events.


Content


Modules Dependencies

This module has no hard UGTK dependencies. It relies only on Unity UI (UnityEngine.UI.Toggle) and UnityEvents.


Setup

Drop the UGTK Toggle prefab under a Canvas (or MultiToggle for the aggregate controller):

Both are also reachable from the menus UGTK/UI/Mn Toggle Extended and UGTK/Utility/Toggle/Mn Multi Toggle As Single.


How To Use

Good to know:


Testing Scene

Open Debug/ToggleScene.unity and press Play: the extended toggle fires its became-true / became-false events, and the multi-toggle reports all-on / all-off across the group.


Technical Info


© 2026 Marcello De Bonis. All rights reserved

Real dependenciesOpen in the map →

Depends on 0

  • Standalone: no other module required.

Used by 1

Measured from the repository: code references (asmdef) plus prefab and asset GUIDs. Importing this module alone brings in 0 modules in total.