In Game Cart
Render a fully managed cart system with support for discounts and creator codes.
The In Game Cart is a UI helper that allows you to build and checkout a branded, customizable cart with your Tebex store's products.
This guide shows you how to setup and manage the in-game cart.

Using with Store Browser
It is not required for you to use the Store Browser with the In Game Cart. They can work independently of one another.
Editor Setup and Usage
Ensure you have Tebex installed to Assets/Tebex in your Unity project.
Create an empty
GameObjectto contain Tebex scripts, or attach to any existing object you use for global state.Add Assets/Tebex/TebexUnity/InGameCart.cs as a script component
Configure the cart as desired in the Inspector
Open the cart in-game using
Tebex.InGameCart.Open()
Customization
StorePublicKey
The Public Key for your game's associated Tebex store
CartCanvas
The Canvas the cart will be drawn on. You must create and assign this.
EnableQR
True to enable generating a QR code the user can scan to checkout using a mobile device.
Enable Creator Code
True to show a Creator Code box where the user can attribute the purchase to a creator. See Creator Codes for more detail.
Enable Discount Code
True to show a Discount Code box where the user can enter a desired coupon
CartLogo
The logo to show on the cart, if any.
CheckoutBtnColorBg
Background color of the checkout button
CheckoutBtnColorFg
Text color of the checkout button
Font
The font to use on the in-game cart.
Last updated