ReadyPlayerMeRenderLoader

The AvatarRenderLoader class is used for loading a 2D render of the avatar.

ReadyPlayerMeRenderLoader is responsible for loading the rendered image from the ModelUrl.

Public Functions

FunctionReturnsDescription

void Load(const FString& ModelUrl, const ERenderSceneType& SceneType, const TMap<EAvatarMorphTarget, float>& BlendShapes, const FDownloadImageCompleted& OnCompleted, const FDownloadImageFailed& OnFailed)

void

Loads the rendered image.

Load() Parameters

ParameterDescription

const FString& ModelUrl

Model url.

const ERenderSceneType& SceneType

The type of the scene where the avatar should be rendered.

const TMap<EAvatarMorphTarget, float>& BlendShapes

Map of the blend shapes and values for them.

const FDownloadImageCompleted& OnCompleted

Success callback. Called when the render is loaded and provides the avatar texture as an argument.

const FDownloadImageFailed& OnFailed

Failure callback. If the render operation fails, the failure callback will be called.

Last updated

#130: Asset API

Change request updated