Table of Contents

Quickstart

Install the SDK

1. Download and import the Homa SDK setup wizard into the Unity project. It can be found on Homa Lab using your credentials.

2. A pop-up will appear, prompting you to accept the installation. Click on the Accept button and wait for Unity to import the SDK packages and recompile.

Homa Belly Pop-up 1

3. After the installation is complete, another pop-up window will appear. Click on the "Begin Setup" button to continue.

Note

If this window does not appear, you can still go to step 4 using the Homa Games/Setup menu.

Homa Belly Pop-up 2

4. A Homa Package Manager window will open, where you can enter your Homa Lab app token. You can find your Homa Lab app token in the Submission Details section after registering your game on Homa Lab. Once you add it, click on the "Install" button. It will install the required packages in your project. You will be able to see the list of newly installed packages.

5. Make sure you ignore the cache directories as listed here.

Initialize the SDK

Homa Belly is initialized automatically. For manual initialization, see here.

You can know when the SDK is initialized using the Events.onInitialized event and the HomaBelly.Instance.IsInitialized property.

Note

The Homa Belly initialization process consists of:

  1. Displaying the Homa Splash screen (if the package is included in your manifest)
  2. Showing the privacy and ATT pop-ups, if required
  3. Synchronizing with Homa Lab and retrieving LiveOps data
  4. Initializing packages like ads and analytics

Implementation example:

// Don't forget to import the HomaBelly namespace
using HomaGames.HomaBelly;

public class MyMonoBehaviour : MonoBehaviour
{
    public void Awake()
    {
        if (!HomaBelly.Instance.IsInitialized)
        {
            // Listen event for initialization
            Events.onInitialized += OnHomaBellyInitialized;
        }
        else
        {
            OnHomaBellyInitialized();
        }
    }
        
    private void OnDestroy()
    {
        Events.onInitialized -= OnHomaBellyInitialized;
    }

    private void OnHomaBellyInitialized()
    {
        // Homa Belly initialized, call any Homa Belly method
    }
}

Update the SDK

To update Homa Belly packages, use the Homa Games/Package Manager menu item to open the Homa package manager window. Then click the “install” button again. This will update your packages, and add/remove new ones if required.

The package manager fetches the list packages to install for your project from Homa Lab.