Load 2D Renders
Load 2D avatars into your Unity Scene.
Last updated
Load 2D avatars into your Unity Scene.
Last updated
In this guide, you learn how to load 2D renders of an avatar into your Unity Scenes. This can be useful for using the Avatars as profile pictures.
You can load a 2D render of your avatar using the AvatarRenderLoader
class which obtains a rendered image of your avatar via the Render API.
Create an instance of AvatarRenderLoader
.
Call the LoadRender()
method, passing the required arguments.
You can import the Multiple Render Example by going to the Package Manager, Ready Player Me SDK Core -> Samples -> Multiple Render Example and then click the import button.
You can then find the Sample in Assets/Samples/Ready Player Me Avatar Loader/[VERSION_NUMBER]/AvatarRender/MultipleAvatarRenderExample
folder.
Check out the code, by opening the Render Panel Script in your IDE.
Loading a Render with the RenderSettings and displaying it on a sprite.