Embedded Wallets SDK for Unreal Engine
Overview
MetaMask Embedded Wallets SDK (formerly Web3Auth Plug and Play) provides a seamless authentication experience for Unreal Engine game applications with social logins, external wallets, and more. Our Unreal SDK, written in C++, simplifies how you connect users to their preferred wallets and manage authentication state across all mobile platforms.
Requirements
- Unreal Engine
v5.3.1with Xcode 15 - Epic Game Launcher to download Unreal library
- Basic knowledge of C++ and Unreal Engine Development
Prerequisites
- Set up your project on the Embedded Wallets dashboard
See the dashboard setup guide to learn more.
Installation
Install the Web3Auth Unreal Engine SDK using one of the following methods:
Git clone installation
Follow these instructions to install the web3auth-unreal-sdk plugin:
- Close your existing Unreal Engine app.
- Create a directory in your app root called Plugins.
- Clone with:
git clone https://github.com/Web3Auth/web3auth-unreal-sdk/tree/main/Plugins/Web3AuthSDK ./Plugins/Web3AuthSDK
- Open UE5 Editor, navigator to
Menu→Edit→Plugins, check the option to enable Web3AuthSDK. - Start your app and it will ask to compile the plugin. Proceed with that.
Manual installation
Download the Unreal Package from our latest release and import the package file into your existing Unreal Engine project.
1. Configure Embedded Wallets project
1.1 Go to the Embedded Wallets dashboard, create or select an Web3Auth project:
1.2 Add {{SCHEMA}}://{YOUR_APP_PACKAGE_NAME} to Allowlist URLs.
1.3 Copy the Client ID for usage later.
2. Configure deep link for Android
To setup the Android SDK and NDK for Unreal's editor, see the Unreal documentation.
- To add redirect URI into your Android app, open the
<Project-path>/Plugins/Web3AuthSDK/Source/Web3AuthSDK_Android.xmlfile. - Find the
<androidManifestUpdates>tag and inside that, will be a<data>tag element. Replace the existing redirect URI with one that you have registered on your Embedded Wallets dashboard.
3. Configure deep link for iOS
Configure your iOS deep link settings in the appropriate configuration files. Make sure the redirect URI matches what you have registered in your Embedded Wallets dashboard.