UniSDK — Yandex Games SDK for Godot 4
Плюс VK Games и OK Games тем же кодом

A full-featured Yandex Games SDK for Godot 4: rewarded and interstitial ads, in-app purchases, leaderboards, cloud saves, review prompts, home-screen shortcut and ready-to-upload HTML5 export presets. The same code and the same build run on VK Games and OK Games — no second export. Free and open source, MIT.

Godot 4.3+ · verified on 4.6.2 and 4.7.2 · GDScript 2.0 · HTML5 / Web export · Editor mock mode · MIT license

What UniSDK does

UniSDK is a Godot 4 editor plugin that hides the differences between the Yandex Games SDK (YaGames) and the VK Bridge. You export one HTML5 build, the platform adapter is detected at runtime from the JavaScript environment, and your game code talks to a single facade — UniSDK.ads, UniSDK.payments, UniSDK.leaderboards, UniSDK.storage.

Ads

Rewarded video, interstitial with cooldown, banners and native ads. Per-format state (supported / unknown / disabled), waiting limits, and a reason in every result.

Purchases

Catalog, purchase flow and unconsumed-payment recovery on top of the Yandex and VK payment APIs.

Leaderboards

Set scores and read entries; capability checks tell you up front whether the platform allows a full board.

Cloud saves

Yandex Player Data and VK Storage with a local cache, diff-based writes, retries and pause/resume on page visibility changes.

Editor mock mode

A mock bridge answers every call inside the editor and stores data in user://unisdk_mock_data.json, so the game runs without a platform account.

Export tooling

Generates web export presets, injects the required HTML shells (Yandex SDK / VK Bridge), patches the Emscripten browser check, adds cache-busting, zips the build.

Installation

  1. Install UniSDK from the Godot Asset Store (or copy addons/uni_sdk into your project).
  2. Open Project → Project Settings → Plugins and enable UniSDK.
  3. The UniSDK autoload registers itself; default platform profiles are created on first run.

Minimal usage

func _ready() -> void:
    await UniSDK.ensure_initialized()
    var result: Dictionary = await UniSDK.ads.show_rewarded()
    if result.get("rewarded", false):
        grant_coins()

Requirements and limits


SDK для Яндекс.Игр и ВК Игр на Godot 4

UniSDK — плагин для Godot 4, который даёт единый GDScript API для Яндекс.Игр, ВК Игр и Одноклассников. Собираешь одну HTML5-сборку — адаптер платформы выбирается сам при запуске, а игровой код обращается к одному фасаду UniSDK.

Что внутри

Установка

Поставь плагин из Godot Asset Store либо скопируй папку addons/uni_sdk в проект, затем включи UniSDK в Project → Project Settings → Plugins.


Links

sdk для яндексаsdk для вкяндекс игры godot вк игры sdkyandex games sdkvk bridge godot yagamesyandex player datagodot web export одноклассники sdkgodot 4 плагин