How to load different scenes

I always forget how to do this. Time to write it down. To load scenes, first set your scenes into your build settings.

In your script, you need to add the scene management library.

Finally, the code is simple. Add the following or choose the numerical order at which the scenes load.

Finally, add the game object with the script to the button you will access in game via the UI canvas.