Question by
J2quared · Oct 16, 2016 at 11:53 PM ·
button trigger events
Dragging a C# script to onClick button returns no listed functions
I'm fairly new to Unity and I am creating a start screen. Problem is, when I drag a script over to onClick on a button.
What's returned is this:
Following the tutorials and doing some googling, I believe I am doing the correct steps.
My function does not have more than 1 parameter.
public void loadScene(string name) {
//is deprecated
// Application.LoadLevel (name);
SceneManager.LoadScene(name);
}
screen-shot-2016-10-16-at-75155-pm.png
(20.0 kB)
Comment
go to unity there will be some error in your project check "console"