Skip to content

Instantly share code, notes, and snippets.

@jmbeach
Created November 25, 2015 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmbeach/a60a11a4cfbad3821300 to your computer and use it in GitHub Desktop.
Save jmbeach/a60a11a4cfbad3821300 to your computer and use it in GitHub Desktop.
TglGroup = GameObject.Find("Toggle Group Name").GetComponent<BetterToggleGroup>();
TglGroup.OnChange += TglGroup_OnChange;
//...
void TglGroup_OnChange(Toggle newActive)
{
Debug.Log(string.Format("Toggle {0} selected",newActive.name));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment