0
public void application() // function when the mouse only find the ui canvas button
{
// when the mouse find only canvas button and when clicked then do something else stop
if (Input.GetButton("Fire1"))
{
print("button pressed");
}
else {
print("button released");
}
}
GetbuttonDown和getbutton起來,而不是getbutton應該工作 –
不工作,他們的返回類型完全改變... – Muhammad