This ought to be a rather trivial question, but I’m having a hard time finding any documentation, tutorials or other info.
What is the easiest/best way of creating the typical menus of a 2D game in Unity? Besides a typical main menu, I need to implement options menus where you can, among other things, remap keys (which should obviously be platform-dependent), adjust sound settings, etc.
One would think that Unity itself would provide utilities for this (eg. buttons, sliders and such), but I can’t find such things. Also it’s hard to find documentation or tutorials about this.
Any help would be appreciated.
Very simply you could create a separate scene, create your buttons, and have your script load your game scene when you press play.
For changing/storing options there are a few methods to transfer data from one scene to another, but for persistent preferences in your menu you could use PlayerPrefs to store the necessary Int’s or w/e for your different options. Also useful for storing highscores.
The new unity GUI does in fact provide Buttons/Sliders/Etc.
Check out this “Scene Selection Menu” video. It should give you an idea for a main menu.
There are other grander ways to create a menu (ways I myself am looking into as I’d like to avoid separate scenes in a simple phone game) But this way will get you going and allow for much customization without too much hassle.
Hey @Mikenseer check out this tutorial on advanced unity settings menu.
Advanced Settings menu unity
Hey @eses check out this tutorial.