UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AsyncTaskDownloadImage.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
UObject/ObjectMacros.h
"
7
#include "
Interfaces/IHttpRequest.h
"
8
#include "
Kismet/BlueprintAsyncActionBase.h
"
9
10
#include "AsyncTaskDownloadImage.generated.h"
11
12
class
UTexture2DDynamic
;
13
14
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam
(
FDownloadImageDelegate
,
UTexture2DDynamic
*,
Texture
);
15
16
UCLASS
(MinimalAPI)
17
class
UAsyncTaskDownloadImage
:
public
UBlueprintAsyncActionBase
18
{
19
GENERATED_UCLASS_BODY
()
20
21
public
:
22
UFUNCTION
(BlueprintCallable, meta=( BlueprintInternalUseOnly=
"true"
))
23
static
UMG_API
UAsyncTaskDownloadImage
* DownloadImage(FString URL);
24
25
public
:
26
27
UPROPERTY
(BlueprintAssignable)
28
FDownloadImageDelegate
OnSuccess;
29
30
UPROPERTY
(BlueprintAssignable)
31
FDownloadImageDelegate
OnFail;
32
33
public
:
34
35
UMG_API
void
Start(FString URL);
36
37
private
:
38
40
void
HandleImageRequest(
FHttpRequestPtr
HttpRequest,
FHttpResponsePtr
HttpResponse,
bool
bSucceeded);
41
};
BlueprintAsyncActionBase.h
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EDatasmithElementType::Texture
@ Texture
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(DelegateName, Param1Type, Param1Name)
Definition
DelegateCombinations.h:53
IHttpRequest.h
ObjectMacros.h
UPROPERTY
#define UPROPERTY(...)
UObject definition macros.
Definition
ObjectMacros.h:744
UFUNCTION
#define UFUNCTION(...)
Definition
ObjectMacros.h:745
GENERATED_UCLASS_BODY
#define GENERATED_UCLASS_BODY(...)
Definition
ObjectMacros.h:768
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
TSharedPtr< IHttpRequest, ESPMode::ThreadSafe >
UAsyncTaskDownloadImage
Definition
AsyncTaskDownloadImage.h:18
UBlueprintAsyncActionBase
Definition
BlueprintAsyncActionBase.h:20
UTexture2DDynamic
Definition
Texture2DDynamic.h:35
Engine
Source
Runtime
UMG
Public
Blueprint
AsyncTaskDownloadImage.h
Generated by
1.9.8