how to get button down instead of button click unity UI code example
Example: input get button uibutton
public void ButtonClick()
{
//Do whatever you want here
}
public void ButtonClick()
{
//Do whatever you want here
}