In the web project:
npm install @3rdweb/sdk @3rdweb/unity-bridge
- In your web app, initialize
ThirdwebBridgeSDK: https://github.com/thirdweb-dev/unity-webgl-template/blob/master/src/App.tsx#L11 - Create
UnityInstancein the window context for message bridging: https://github.com/thirdweb-dev/unity-webgl-template/blob/master/src/App.tsx#L20-L30 - Update the
ThirdwebBridgeSDKsigner whenever a signer is available: https://github.com/thirdweb-dev/unity-webgl-template/blob/master/src/App.tsx#L45-L50 - Unity SDK is now authenticated with the signer!
Unity SDK: https://github.com/thirdweb-dev/unity-webgl