Automated Shop

VIDEO TUTORIAL


A fully automatic and customizable UI based shop built via Unity’s supplied Scroll View.

This system is ideal for mobile games (can run on any platform however) that consist of large shops containing an ever increasing amount of purchasable items.

This system will remove all grunt work of self populating your shop by hand and populate it for you during runtime with ease.

The Automated Shops supplied scroll view will correct its size to fit all PurchasableShopItems that were supplied via the inspector, or found in the supplied resource folder via a file path . So developers can populate their new shop with a next-to-infinite amount of items with the click of a button.

The PurchasableShopItem that populates the scroll view is fully a customizable scriptable object. These PurchasableShopItem’s can be created/customised very easily. They communicate with the ShopItem prefab to have customised visual displays in the shop as well. - Refer to documentation for more information.

The PurchasableShopItem comes with built-in purchasing logic. The script contains different Purchase Type that developers can choose from, or are free to add more if they wish. The default purchasing types supplied are Coins, Special, IAP, each with their own unique purchasing logic that is already in place and can be adapted to any existing system. Once a shop has been populated during runtime, all existing shop items have a built-in “On-Click” function that will trigger this purchasing logic by a player interacting with the item in the shop.

The PurchasableShopItem also comes with a unique Item Type. This can be fully customised to suit the needs of your game. The default types are : Consumable, Weapon, Cosmetic, Vehicle. Developers are encouraged to customize these as we cannot predict what kind of items your game will consist of. Similar to the Purchase Type.

Therefore with these two customizable features developers can create very unique shop items tied to built in purchasing logic. For example: A Purchase Type of Coins, with an Item Type of Cosmetic creates a cosmetic you can purchase with regular coins(currency). Or, A Purchase Type of Special with an item type of Vehicle, will create a vehicle players can only purchase with a Special Currency.

The Visual item displayed in the shop is the supplied prefab “ShopItem”. This prefab is what the player will see in the shop. It contains many UI items; A display name, A display Image, a background image, and a cost text. It reads from a supplied PurchasableShopItem and will set these display items to match the PurchasableShopItem variables exactly. The ShopItem is basically a template of what all shop items will be created from. Developers are encouraged to add art assets to this prefab.

To increase development time, included is a built in button to refresh the shop. So developers can take advantage of this and can determine the exact values they need with ease during runtime.


The Default UI is geared for portrait view - We recommomend switching to android or IOS platform to begin setting up your shop.



Documentation here