RPGlite Starter Kit  1.0.0
Starting RPG projects made easy.
Loading...
Searching...
No Matches
⏩ Quickstart

To start using RPGlite, I recommend first testing the RPGliteDemo scene inside the RPGliteStarterKit folder, and checking it for reference.

For implementing the systems in your own scenes, you can follow the next steps.

Adding the InventoryManager to the scene

From the RPGliteStarterKit/Prefabs folder, drag the InventoryManager prefab and drop it in the scene hierarchy.

You can customize all of its attributes in the inspector, with the InventoryManager instance selected.

Inventory Manager

Details on each of the attributes:

  • Set Icon Hats: Texture that will be shown next to the item's name when they are of type Hat.
  • Set Icon Outfits: Texture that will be shown next to the item's name when they are of type Outfit.
  • Set Rarity Colors: Colors used for each rarity level, affects item name and icon.
  • Set Money Color: Color of money text.
  • Set Money Prefix: The prefix for the game in the game, e.g. G for Gold.

Adding the player inventory and shop screen

To add them to your scene, the simplest way is to drag the Canvas prefab from the Prefabs folder an drop it into the hierarchy. It already contains the pre-configured inventory and shop systems.

If you want to add them individually to your own scenes, drag an drop the Inventory and Shop prefabs into the Canvas in your scene.

‍⚠️ Tip: If you cannot click the items in the UI or otherwise interact with the inventories, make sure you have a Unity EventSystem in your scene hierarchy.

Choosing items that are currently in the inventory or the shop

To choose which items will be presented in the inventory, first select the Inventory in the scene Hierarchy. In the inspector, find the Inventory script component, expand the itemIds list and add or remove the corresponding numerical IDs that you want.

Choosing items to generate by itemId. You can always consult the itemId for the desired item in your RPGlite/Resources/items.json file.

The process is identical for the shop. Select the Shop in the scene Hierarchy, and find its Shop script component in the inspector. Modify the itemIds list in the same manner as you did with the Inventory.

Choosing items to generate by itemId in the Shop prefab.
Read Next
🎒 Editing items