
All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
📖 Documentation • 🚀 Quick Start
🌐 Language: English | 简体中文 | 繁體中文 | 日本語 | 한국어
DouYin Mini Game ad adapter layer for the GameFrameX advertisement component. Built on StarkSDK, it wraps rewarded video ad loading, display, and lifecycle management.
Option 1: Edit manifest.json
{
"com.gameframex.unity.advertisement.douyinminigame": "https://github.com/gameframex/com.gameframex.unity.advertisement.douyinminigame.git"
}
Option 2: Unity Package Manager
Open Window > Package Manager, click + and select Add package from git URL:
https://github.com/gameframex/com.gameframex.unity.advertisement.douyinminigame.git
Option 3: Manual Install
Clone this repository into your Unity project's Packages/ directory. It will be detected automatically.
This package is a sub-component of com.gameframex.unity.advertisement and does not expose public APIs directly. Use the main advertisement package for unified access:
Preserve attribute + CroppingHelper)UNITY_WEBGL + ENABLE_DOUYIN_MINI_GAME)| Dependency | Description |
|---|---|
com.gameframex.unity.advertisement | Main ad package, provides BaseAdvertisementManager base class |
starksdk.dll | ByteDance StarkSDK runtime library |
ttsdk.dll | ByteDance TTSDK runtime library |
Runtime/
├── DouYinMiniGame/
│ ├── DouYinMiniGameAdvertisementManager.cs # Ad manager, inherits BaseAdvertisementManager
│ └── DouYinVideoAdCallback.cs # Video ad callback handler
├── GameFrameXAdvertisementDouYinMiniGameCroppingHelper.cs # Anti-stripping helper
└── GameFrameX.Advertisement.DouYinMiniGame.Runtime.asmdef # Assembly definition
UNITY_WEBGL and ENABLE_DOUYIN_MINI_GAME are defined.