For starters, the method that you want the button to call has to be public. Actual name isn’t important.
public void OnMouseDown()
{
Application.LoadLevel(SceneName);
}
After you’ve done that you simply need to click on the button, expand the “On Click ()” event, click the “+”, drag the object containing the script over top of “None (Object)” and then in the dropdown to the right of it you need to navigate to the method and select it.
Brilliant! That worked. Now I can get all my buttons updated. Thank you so much @Ryiah Much appreciated!
Please don’t spam in future with same posts, across different forums.
** Updating old UI, Need help with button On Click () **
UIElements
** Updating old UI, Need help with button On Click () **
Unity UI (uGUI) & TextMesh Pro
Already taken care of
wrong forum. Closed.