GUI Button handler gets Button( Control type ) as its parameter.
public UIControl Button_New;
Button_New.Get<Button>().ButtonClicked += OnSelectNew;
private void OnSelectNew(Button button)
{
Debug.Log("Clicked: " + button.Text);
}
Button_New ( UIControl ) is an Actor, but button ( Button ) is just a member of UIControl.
So Button_New can retrieve Actor information like Name, but button cannot access to Name.
Is there a way to backtrack Get() from Button class to associated actor to access Actor members?
Some kind of way of identification is needed to distinguish GUI controls, especially with localized texts.