AvatarRenderLoader

The AvatarRenderLoader class is used for loading a 2D render of the avatar.EnochavatarPlayerMeRenderLoader is responsible for loading the rendered image from the ModelUrl.

Public Functions

Function

Returns

Description

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

Parameter

Description

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