Starting Game Development in Unity

Adding an RPG Style Shop (Part 1)

//Let’s spend our hard earned loot….but first we need a shop!

Valdarix Games
Nerd For Tech
Published in
4 min readJul 30, 2021

--

Grabbing some hard earned spoils from the enemies in our games is rewarding, but it’s even more rewarding to spend that hard earned loot. In order to do that we need to set up a shop for our game.

In part 1 we will look at setting up the Shop in a visual manner. For our purposes we are going to be using a menu (UI Canvas in Unity) to serve as the shop. Other ways exist such as adding new scenes to the game but for our needs the UI Canvas works.

If you have ever played a JRPG you are probably familiar with the type of shop we are setting up. Our shop is going to be pretty primitive, the shop keeper won’t have an inventory of items. Just three items he can sell us. Shop inventories are a whole different topic and our focus today is simply on setting up a shop in Unity.

UI Layout

First let’s look at the hierarchy view of the UI Canvas and discuss what we are seeing.

The shop in game and in the hierarchy.

--

--

Valdarix Games
Nerd For Tech

Turning my passion for video games and software development experience into a focus on video game development.