2. Install the Airflux SDK
By installing the Airflux SDK in your app, you can collect in-game data required for Airflux's model training. The installation and setup will take approximately 5 minutes.
1. Import the Airflux package
Follow the steps below to add the Airbridge SDK package file to your project.
Download the latest version of the Airflux Unity SDK package file.
Import the package file by selecting the menu option [Assets]>[Import Package]>[Custom Package].
When the import is complete, the [Airflux] tab will appear in the top menu bar of the Unity Editor.
2. Set up SDK initialization
The SDK initializes automatically every time your app is opened.
Select [Airflux]>[Airflux Settings] from the top menu bar in the Unity Editor and configure the keys as listed below.
Attention: Check country allowlist settings when updating SDK
When updating the Airflux SDK from version 0.1.0 to 0.2.0, the Country Allow All
option is set to true
by default. As a result, after the update, all countries regardless of your existing allowlist settings are allowed to follow Airflux's optimization policies.
If you wish to restrict countries by sticking to your existing allowlist settings, be sure to explicitly set Country Allow All
to false
after the update.
App Name
Required
string
-
Input the App Name from the Airbridge dashboard.
App Token
Required
string
-
Input the SDK Token from the Airbridge dashboard.
Log Level
Optional
string
warning
Set the log level for the Airflux SDK. Choose from debug
, info
, warning
, error
, fault
.
Session Timeout Seconds
Optional
double
300
The default value is 300 seconds. Modify if needed.
Country Allow All
Required
boolean
true
When set to true
, all countries are allowed to follow Airflux's optimization policies.
Country Allowlist
Required
array
[ ]
Set the countries where calling the Airflux's inference API should be allowed. Use country codes following the ISO 3166-1 alpha-2 format (e.g., US, KR). You can set multiple countries using the Country Allowlist array.
Auto Start Tracking Enabled
Optional
boolean
false
Set whether to collect events automatically upon SDK initialization.
- true
: Event collection starts automatically upon initialization.
- false
: Event collection starts upon calling the Airflux.StartTracking()
function.
SDK Enabled
Optional
boolean
false
Set whether to enable the SDK upon initialization.
- true
: The SDK is initialized in active mode.
- false
: The SDK is initialized in inactive mode and is enabled upon calling theAirflux.EnableSDK()
function.
Frequently Asked Questions
Troubleshooting
Last updated