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.3.1.unitypackage
Installation Steps
- In the Unity Editor, select Assets > Import Package > Custom Package...
- Select the provided
tudada-unity-client-v0.3.1.unitypackagefile - Click the Import button in the Import Unity Package window with every item selected —
TudadaSDKis a partial class split across several files, so importing only some of them will not compile
Project Structure After Import
After importing the package, the following files are automatically placed:
Assets/
└── TudadaUnityClient/
├── README.md ← Installation & API guide
├── CHANGELOG.md ← Version history
├── Plugins/
│ └── WebGL/
│ └── TudadaSDK.jslib ← WebGL plugin
├── Scripts/
│ ├── TudadaSDK.cs ← Main SDK
│ ├── TudadaSDK.Payment.cs ← Payment API
│ ├── TudadaSDK.Room.cs ← Multiplayer Room API
│ ├── TudadaSDK.GameAction.cs ← Game action logging
│ ├── 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 & platform event types
│ │ ├── AccelerometerTypes.cs ← Accelerometer types
│ │ ├── CheckFeatureTypes.cs ← Check feature types
│ │ ├── ServerTimeTypes.cs ← Server time types
│ │ ├── ShareForRewardTypes.cs ← Share types
│ │ ├── PaymentTypes.cs ← Payment types
│ │ ├── RoomTypes.cs ← Room types
│ │ └── GameActionTypes.cs ← Game action types
│ └── Objects/
│ ├── TudadaRewardedVideoAd.cs ← Ad instance
│ └── TudadaAccelerometerSensor.cs ← Accelerometer sensor instance
└── Examples/
└── TudadaSDKExample.cs ← Usage example
Important: The WebGL plugin
TudadaSDK.jslibmust stay atAssets/TudadaUnityClient/Plugins/WebGL/. It is placed there automatically during import, so do not move the file after importing.
Upgrading: Importing over a previous official package (0.2.x) overwrites the files at the same paths in place. If you installed a preliminary package delivered before the official release, compatibility is not guaranteed — delete the existing
Assets/TudadaUnityClientfolder before importing and re-attach theTudadaSDKcomponent in your scene.
Namespace
All SDK classes are contained in the Tudada namespace:
using Tudada;