Question by
Diamonddoggames · Feb 17, 2017 at 07:25 PM ·
button
Gui Button
I Need help by switching the scene by Clicking on the Gui button
thanks
Comment
Answer by Restemayer · Feb 17, 2017 at 10:45 PM
You need a function attached to that button that calls the SceneManager...
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.html
You're looking for the SceneManager's LoadScene function. It'll take either the name of scene or the build index.
Your answer
![](https://koobas.hobune.stream/wayback/20220612111335im_/https://answers.unity.com/themes/thub/images/avi.jpg)