ToggleGroup and events

I'm probably missing something simple here.

You can add an event to a single Toggle control. The ToggleEvent passes a bool to your receiving method, but nothing more. This is fine for a single toggle that you just want to react to when it's toggled on and off.

When you have a toggle group, especially one into which you have instantiated the items yourself, it would be useful to be able to have one delegate to receive the onchange event for all of the Toggles in the group. We can't use ToggleEvent for this as it doesn't include a reference to the Toggle gameobject.

Is there currently a way to do this?

When you create your toggle / group or add the callback you can do this with a delegate as you have access to the toggle and the group at that stage. The example below is for button, but the same ideas can be applied to toggle.

button.onClick.AddListener (delegate { Debug.Log("The Button is " + button.name); } );