# AvatarRenderLoader

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

### Public Functions <a href="#public-functions" id="public-functions"></a>

| 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 <a href="#load-parameters" id="load-parameters"></a>

| 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.              |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enoch-app.gitbook.io/enoch/api-references/unreal-engine-sdk/avatarrenderloader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
