Skip to main content

Installing the SDK in Your Unity Project

Installing the SDK in Your Unity Project

Install via Unity Package

Import the provided .unitypackage file into your Unity project.

Package File: tudada-unity-client-v0.1.5-hotfix0420.unitypackage

Installation Steps

  1. In the Unity Editor, select Assets > Import Package > Custom Package...
  2. Select the provided tudada-unity-client-v0.1.5-hotfix0420.unitypackage file
  3. Click the Import button in the Import Unity Package window

Project Structure After Import

After importing the package, the following files are automatically placed:

Assets/
├── Plugins/
│ └── WebGL/
│ └── TudadaSDK.jslib ← WebGL plugin
└── TudadaSDK/
├── Scripts/
│ ├── TudadaSDK.cs ← Main SDK
│ ├── Internal/
│ │ └── Constants.cs ← Internal constants
│ ├── Types/
│ │ ├── TudadaTypes.cs ← Common types
│ │ ├── AuthTypes.cs ← Auth types
│ │ ├── StorageTypes.cs ← Storage types
│ │ ├── SystemTypes.cs ← System types
│ │ ├── DeviceTypes.cs ← Device types
│ │ ├── AdTypes.cs ← Ad types
│ │ ├── LifecycleTypes.cs ← Lifecycle types
│ │ ├── AccelerometerTypes.cs ← Accelerometer types
│ │ └── CheckFeatureTypes.cs ← Check feature types
│ └── Objects/
│ ├── TudadaRewardedVideoAd.cs ← Ad instance
│ └── TudadaAccelerometerSensor.cs ← Accelerometer sensor instance
└── Examples/
└── TudadaSDKExample.cs ← Usage example

Important: The Plugins/WebGL/TudadaSDK.jslib file must be located at the Assets/Plugins/WebGL/ path. It is automatically placed in the correct location during import, so do not move the file after importing.

Namespace

All SDK classes are contained in the Tudada namespace:

using Tudada;