- Download the UnityPackage and import it into your project (https://github.com/Y8Games/unity-sdk-lightweight/releases)
- Drag and drop the prefab from Assets > Y8 > Y8Root into your main scene (for example preloader or splash screen scene)
- go to https://account.y8.com/applications and create new application
- Copy paste the application ID into the Y8Root prefab in your scene (also ask support for Ads Id if you are partner)
- When building WebGL, use the Y8 template
Y8_2020_LTS
- Add
using Y8API;
to your using directives - Call awaitable methods on Y8, for example
var loginInfo = await Y8.Instance.LoginAsync();
- Check TestScene for all available methods and usage
- You will need to be approved as a Y8 partner first, please contact the support to receive AdsID
- Always pause the game (including all sounds) before playing the ads
Example:
public async void ShowAd()
{
PauseGame(); // Should pause all sounds as well
await Y8.Instance.ShowAdAsync();
UnpauseGame();
}