For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

The In Game Cart requires using Unity's Canvas and Layouts systems with TextMeshPro.

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

  1. Ensure you have Tebex installed to Assets/Tebex in your Unity project.

  2. Create an empty GameObject to contain Tebex scripts, or attach to any existing object you use for global state.

  3. Add Assets/Tebex/TebexUnity/InGameCart.cs as a script component

  4. Configure the cart as desired in the Inspector

  5. Open the cart in-game using Tebex.InGameCart.Open()

Customization

Option
Description

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