Starting our project
To get started, let's create a new project for us to work with:
With Unity started from the launcher, select File | New Project. From there, give it a name (I used
ClickerGame
) and a Project Location of your choice and make sure that 2D is selected. Afterwards, click on Create project:Now that we are inside the editor, let's start off by creating our button, which we will use to click. From the Project tab, create a folder named
Sprites
and open it up. Then, right-click from the folder and select Import New Asset… and select thebutton.png
file from inside of the Art Assets folder. Alternatively, you can use your own asset as it's just a way to make the button different from the default one.To create the basic button, we will customize start off by going to GameObject | UI | Button. From the Hierarchy tab, open up the
Button
object by clicking on the triangle next to the name and then delete theText
object by selecting it and then pressing the Del key. Then, select the...