Unity Buy SDK
The Unity Buy SDK lets you add commerce features to games made with the Unity game engine. You can use it to connect in-game purchase experiences with physical products in Shopify.
You can use the Unity Buy SDK to:
- fetch information about a single product or a collection of products in Shopify
- create an in-game shopping cart where customers can select product options and quantities
- generate a checkout for a single product or an entire cart.
If you need to get API credentials and create a Shopify store to use with the Unity Buy SDK, then see our Storefront API getting started guide. If you want to learn more about how this SDK works with Unity, then see the Unity Buy SDK tutorial.
And if you're ready to start building, then browse the Unity Buy SDK reference:
Use cases for the Unity Buy SDK
You can use the Unity Buy SDK to help monetize your apps in a few different ways. These can impact your business model, revenue stream, and even your game design.
The most simple way to use the Unity Buy SDK is to let the player purchase branded products. In Alto's Adventure, the Unity Buy SDK lets the player buy branded products from purchase points in the game using their credit card.
The products that you sell in game can also be integrated closely with the game's story. In Northside, a proof of concept game developed in-house at Shopify, the player explores a group of islands and tries to capture three different characters. The Unity Buy SDK gives the player a chance to buy a unique pin for each character that they're able to capture.
The SDK could also support the player buying real-world goods that integrate with the game itself, such as a reference manual or guide that would help the player complete a section of the game.
The Unity Buy SDK can support customized purchases, such as the player buying a t-shirt that shows the total distance they've traveled, or ordering prints of photos that they've taken of scenes in the game.
Where to get help
This SDK is not supported by Shopify gurus, but you can open an issue against the GitHub repository.
Visit our forums to connect with the community and learn more about the Shopify API and app development.
Find an Expert for hire in our ecosystem of talented development agencies.