Skip to content

Unity SDK

Download Unity SDK

We also suggest that you read the following Unity WebGL export tips. They may help you to reduce the final build size and increase the performance of your game, thus increasing your revenue. Furthermore, you can also have a look at the WebGL Optimizer utility that the CrazySDK provides by default.


If you are updating the SDK, we recommend that you delete the folders `CrazySDK` and `CrazyOptimizer` (if present) to avoid possible conflicts in case of folder structure change.


The SDK contains a sitelock functionality. You will find more information about sitelocking, including whitelisting your domain, in the sitelock section.

The SDK also contains the following parts:

  • CrazyAds that contains the ad management system.
  • CrazyEvents that contains all our other features.

Make sure that you also import the Plugins and WebGLTemplates folders at the root of your project.

CrazyGames supports only compressed builds (either Brotli or Gzip). This means that the development builds won't run in the QA tool, since they are not compressed.


The SDK contains a WebGL template that lets your game run using the same setup as it would on In order to use it, make sure you have imported the template (/WebGLTemplates/Crazy_5_6+ and /WebGLTemplates/Crazy_2020 folders should be present in your project). Then, in your Build Settings (File/Build Settings...), in the Player Settings, under Resolution and Presentation, among the WebGL Templates, select Crazy_5_6+ if you are using a Unity version prior to 2020 or Crazy_2020 for the 2020 version and after. Now when will build and run your project, it will have all the SDK capabilities as it would on the CrazyGame website.

Player settings

WebGL template

By default, the SDK is not initialized on your domain, and all the calls to the SDK will produce nothing. However, if you upload the game on your domain using the above-mentioned templates, the SDK will start in demo mode and you will be able to see demo ads/banners and console logs.


Sitelocking is done automatically on game start. It allows your game to run only on and our affiliated sites. This ensures that your game cannot be stolen and hosted on other domains, so you do not lose any revenue.

By default, the sitelock will also block the game on your domain. To avoid this, you should add your domain to the list of whitelisted domains in the CrazySDK settings. You can find the settings in CrazySDK/Resources/CrazyGamesSettings.


When reimporting the SDK, Unity resets these settings.

Whitelist domain

QA Tool

You can check if the game is running in QA Tool like this:

CrazySDK.Instance.IsQaTool(isQaTool => { Debug.Log("Is QA Tool: " + isQaTool); });