<aside> 💡 If you’re reading the offline version of this documentation, please find the more up-to-date information at: https://retrogig.notion.site/Retro-Horror-Shop-1e5965e95bea803ba671f33ae8622930

</aside>

Demo Scene

There is a demo scene in HorrorEngine/AddOns/Shop/SampleShop.

The scene contains currency pickups and a sample shot with different items

image.png

UI Setup

First we need to make sure the UIShop is spawned when the game starts. For this, simply add UISHop to the CustomUI list in your HECore asset.

If you are using the included default HECorePrefabs, simply add UIShop to the CustomUI list.

Ideally, you should use your own HECorePrefab where you can use the base HECorePrefab as a prototype in order to add only the additional or changed elements.

image.png

Add shop to a level

To add a shop to a level, simply drop the prefab HorrorEngine/AddOns/Shop/Prefabs/Shop in your level.

This will add a placeholder interactable object which should open a shop when interacted.

Shop content

When the Shop prefab is interacted with, the shop is opened using a ScriptableObject which contains the selling products

image.png

You can duplicate this asset to define your own shop or create one by right clicking on your Project View and selecting Create→HorrorEngine→Shop→Content.