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
- In the Unity Editor, select Assets > Import Package > Custom Package...
- Select the provided
tudada-unity-client-v0.1.5-hotfix0420.unitypackagefile - 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.jslibfile must be located at theAssets/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;