how to make a play button unity 5

how do i make a play button in unity 5

ADD a ui button to your scene . GameObject → UI → Button, and make a script:

using UnityEngine;
using System.Collections;

public class Loader : MonoBehaviour {

	public void Play(){
		Application.LoadLevel(1/*or whatever*/);
	}

}

and then attach the Play method to the ui button:

42329-buttonloader.png

Simply change the strings and values to your liking ^^

function OnGUI () {
// Make a background box
GUI.Box (Rect (10,10,100,90), “Loader Menu”);

    // Make the first button. If it is pressed, Application.Loadlevel (1) will be executed
    if (GUI.Button (Rect (20,40,80,20), "Level 1")) {
        Application.LoadLevel (1);
    }

    // Make the second button.
    if (GUI.Button (Rect (20,70,80,20), "Level 2")) {
        Application.LoadLevel (2);
    }
}