The Ready Player Me Unity SDK allows us to use the web view on a mobile app to create an avatar and add it to the scene. This avatar can later be used in our application. This blog focuses on how we integrate the web view on an android application.
The Ready Player Me SDK can be imported into Unity in a few simple steps:
To make sure the build runs correctly on our Android device, we need to make sure the Unity’s Build and Player Setting are correctly configured. For that,
Select Player Settings and make the following changes:
Adding the web view component is really simple but after that, we’ll have to write a simple script to add the created avatar to our scene.
To test if the web view works and if the avatar gets loaded into the scene correctly, we’ll have to build that APK and deploy it to the phone.
Note: The WebView feature is only supported on Android and iOS builds. It will not work inside the Unity editor or on Desktop builds.
So to build the app,
Once that's done, you can test the app on your device.
Note: Make sure you have a good internet connection or else it would take a longer time to load.
Now that you know how to get your avatar on your android app, you can do a lot more with it. You can use it in your game, create your own 3D emojis, control the AR object with a joystick and many other experiences.
If you've enjoyed the insights shared here, why not spread the word? Share the post with your friends and colleagues who might also find it valuable.
Your support means the world to us and helps us create more content you'll love.