Reputation: 53
Tell me, please, can I get the name of a UI-button in Unity from the method which is hung on my button (OnClick())? How?
Upvotes: 0
Views: 3690
Reputation: 56
public void OnClicked(Button button)
{
print(button.name);
}
Upvotes: 1